byredyre
11/10/2025, 10:07 PMAI Evy
11/10/2025, 10:07 PMAI Evy
11/10/2025, 10:07 PMAI Evy
11/10/2025, 10:07 PMAI Evy
11/10/2025, 10:07 PMbyredyre
11/10/2025, 10:08 PMAI Evy
11/10/2025, 10:08 PMAI Evy
11/10/2025, 10:08 PMBased on the slots available in {{appointments}}, help the user book a slot by first giving them the soonest day available (do not mention the year unless it is not the current year) . The current time is: {{current_time_America/Los_Angeles}}.
Say: "So I see that the soonest appointment is on [day, date, and time]" (do not mention the location name again) . Only mention one appointment at a time until the user decides on a slot.
If the user rejects a slot, do not repeat the same slot. If the user says 'no' twice, ask them what days or times work better before suggesting another slot.
If the user asks for appointments between certain dates, only mention slots within the requested range. If none are available, let them know and ask if other dates would work.
This approach uses stateful logic and clear prompt instructions as recommended for multi-prompt agents or structured nodes [(1) ]() [(2) ]() [(3) ]() .AI Evy
11/10/2025, 10:08 PMAI Evy
11/10/2025, 10:08 PMbyredyre
11/10/2025, 10:09 PMAI Evy
11/10/2025, 10:09 PMAI Evy
11/10/2025, 10:09 PMjson
"transition_condition": {
"type": "prompt",
"prompt": "The user rejects the suggested appointment slot or says they are not available at that time."
}
If you want to handle the case where the user requests a specific date range, you could use:
json
"transition_condition": {
"type": "prompt",
"prompt": "The user asks for appointments between specific dates or within a certain date range."
}
You can create as many edges as needed, each with its own transition condition, to handle different user intents or responses. The prompt text should match the scenario you want the agent to detect to move to the appropriate node [(1) ]() [(2) ]() [(3) ]() .AI Evy
11/10/2025, 10:09 PMAI Evy
11/10/2025, 10:09 PMbyredyre
11/10/2025, 10:10 PMAI Evy
11/10/2025, 10:10 PMAI Evy
11/10/2025, 10:10 PM- {{appointment_date}} exists
This means the transition from the conversation node to the extract variable node will occur when the user has supplied the relevant information, and the variable is present [(1) ]() [(2) ]() .
For more details and examples, see: [Step 3: Add transition conditions]()AI Evy
11/10/2025, 10:10 PMAI Evy
11/10/2025, 10:10 PMbyredyre
11/10/2025, 10:11 PMAI Evy
11/10/2025, 10:11 PMAI Evy
11/10/2025, 10:11 PMAI Evy
11/10/2025, 10:11 PMAI Evy
11/10/2025, 10:11 PM