Step 1: Write the prompt
Build a multi-prompt agent
1
Break down the conversation into steps
In each step, you can define a prompt.
2
Define state transition logic
Just like in the “Lead qualification” template, you can have this prompt to define when to transition to the next step like if users say “yes” to the question, transition to your_next_state
state.
3
Define when to call the function
Just like in the “Lead qualification” template, you can have this prompt to define when to call the function like call the your_function_name
function to book the appointment.
Video tutorial:
Was this page helpful?