Write a single prompt

Prompt Engineering might be the most crucial part of your assistant, it can make or break your assistant. This guide will explain our findings on how to write prompts that assistant can follow more reliably.

This guide is a work in progress and will be updated as we learn more. If you have any suggestions or feedback, please let us know.

To check some of the prompts we have created, you can look at templates in Dashboard (create a new Assistant and select a template to start).

Write task as steps:

If you want your assistant to follow a specific instructions during the call, we suggest to write each task as steps. This will help AI assistant to understand what to ask at each step and how to proceed. You can also include logic within a step, which prevents AI assistants from batching all of their questions at once.


## Task
1. Ask for the user's name.
2. Ask if the user wants to schedule an appointment, report an emergency, or inquire about services.
    - If scheduling, transition to the appointment scheduling state.
    - If it's an emergency, transition to the emergency state.
    - If inquiring, provide relevant information.

...

If you find that the AI assistant still doesn't stop at the right time, or you need to perform some actions instead of stopping at each action, you can write it more precisely by adding a "wait for user response" as shown below.


## Task 
1. Inform user why you are calling.  
2. Ask for user's name.  

wait for user response  

3. Ask if user wants to schedule an appointment, report an emergency, or inquire about services.  

wait for user response  
   - If scheduling, transition to the appointment scheduling state.  
   - If it's an emergency, transition to the emergency state.  
   - If inquiring, provide relevant information.  

...

Last updated