The OpenAI prompt is reported here for copy/paste purposes:

Description of your first forum.
Post Reply
Shfjoiw
Posts: 3
Joined: Sun Dec 15, 2024 3:14 am

The OpenAI prompt is reported here for copy/paste purposes:

Post by Shfjoiw »

Analyze the conversation with the user and help him enter the necessary data to complete the operation. The data needed is:
slot day, slot time, office.
Available slots:
Monday slots: 10, 12, 14
Tuesday slots: 11, 13
Wednesday slots: 8, 9, 16
Offices: Support, Sales, Complaints
When the user has provided italy phone number list all the data, reply using the Reply Message below:
Thank you!

Image

Reply to me with a JSON in this format:

Chat history and JSON response
We asked OpenAI to always use chat history , so OpenAI can know what data has already been provided during the conversation and handle it accordingly. But note, we always ask to respond with JSON data because we want all the acquired data to be returned to the flow in a format suitable for being – for example – sent to a remote service. So don’t forget to always check the options accordingly:


We ask to fill in the response fields with the appropriate data: giorno_slot , tempo_di_slot and office are the fields that we ask the user to fill in. The other two fields are instead functional to the flow of the conversation. The response field is delegated to always get the "human response" of ChatGPT for the user, while we use the last one, dati_ok , to understand if the conversation with the user has been completed with all the necessary data and we can move on to the next steps.
Post Reply