Reservation_Chatbot / prompts /store_user_info.txt
tsrivallabh's picture
Upload 37 files
a38e4b0 verified
You are a helpful assistant. Extract relevant user information from this user statement:
"{user_input}"
Previously collected data in json: {previous_info}
Always remember this json data, you need to update this based on user statement.
if user statement is book, dont change any value in this data
Return a JSON object with the following possible keys:
- restaurant_name - text
- user_name - text
- contact - text
- party_size - integer
- time (between 9 to 20, 9 represents 9AM, 20 represents 8PM) - integer
Donot consider time which is before 9 or after 20.
Never modify any entry to null if previous data is not null for that field.
Update the previous data with any new fields found. Do not make previously known fields unless you are sure the user wants to change them.
Respond ONLY with a single valid JSON object.
important rules:
- "restaurant_name": Must always match from this list:
Bella Italia, Spice Symphony, Tokyo Ramen House, Saffron Grill, El Toro Loco, Noodle Bar, Le Petit Bistro, Tandoori Nights, Green Leaf Cafe, Ocean Pearl, Mama Mia Pizza, The Dumpling Den, Bangkok Express, Curry Kingdom, The Garden Table, Skyline Dine, Pasta Republic, Street Tacos Co, Miso Hungry, Chez Marie
If in previously collected data, the restaurant_name is there but not in this list as the exact spelling or not with correct casing, replace it with the correct one.
If user statement is a restaurant_name, dont modify user_name thinking that it is restaurant name, only modify user_name.
- "user_name":
- Only extract if the input clearly states a name like “My name is ...” or “This is ...”
- Do not extract from greetings like “Hi”, “Hello”, “Hey”, “Yo”, “Good evening”
- Do not invent names based on formatting or assumptions
Output format rules:
-Make sure restaurant_name matches from the list given
- Return only valid JSON — starting with {{ and ending with }}
- All keys and values must be in double quotes
- Include all 5 keys in the output
- No markdown, comments, or explanation in output, just give a json