fix phone number format issue (#2217)
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
You need to help checking if the current phone number format is matching the required format according to the user goal, user details and HTML elements.
|
||||
You need to help checking two goals:
|
||||
1. Based on the context/intention, check whether the current value is used to input as a phone number
|
||||
2. If the current value is a phone number, check whether the format of the phone number matches the required format based on the user's goals, user details, and HTML elements.
|
||||
|
||||
There are several checkpoints to verify the format of the phone number:
|
||||
- Whether the phone number should add hyphen.
|
||||
@@ -9,15 +11,22 @@ MAKE SURE YOU OUTPUT VALID JSON. No text before or after JSON, no trailing comma
|
||||
|
||||
Reply in JSON format with the following keys:
|
||||
{
|
||||
"phone_number_format": str, // Think step by step. The format of the phone number required on the page according to HTML elements.
|
||||
"page_info": str, // Think step by step. Describe all the useful information in the page related to the user goal.
|
||||
"is_phone_number_input": bool, // Think step by step. True if the current value is used to input as a phone number.
|
||||
"thought": str, // Think step by step. Describe your thought about how you come up with the phone_number_format. Use information you see on the site to explain.
|
||||
"is_current_format_correct": bool, // True if the current phone number format is matching the required format.
|
||||
"recommended_phone_number": str, // If is_current_format_correct is True, return null. Otherwise, return the recommended phone number with the correct format.
|
||||
"phone_number_format": str, // Think step by step. The format of the phone number required on the page according to HTML elements. Null if is_phone_number_input is False.
|
||||
"is_current_format_correct": bool, // True if the current phone number format is matching the required format. Null if is_phone_number_input is False.
|
||||
"recommended_phone_number": str, // If is_current_format_correct is True or is_phone_number_input is False, return null. Otherwise, return the recommended phone number with the correct format.
|
||||
}
|
||||
|
||||
Current phone number:
|
||||
Context/Intention
|
||||
```
|
||||
{{ current_phone_number }}
|
||||
{{ context }}
|
||||
```
|
||||
|
||||
Current value:
|
||||
```
|
||||
{{ current_value }}
|
||||
```
|
||||
|
||||
User goal:
|
||||
|
||||
Reference in New Issue
Block a user