Prompt guide & examples for specific situations
Here are some specific prompt guide and examples for common situations you might encounter in building a voice agent.
Pronounce the phone numbers
We’ll utilize the Read Slowly feature to add pauses between words. For more information, see the Speech Controllability documentation.
It’s recommended to include a prompt as a guideline for the LLM to follow. This ensures that the agent can consistently reply with the correct format, even if customers double-check the phone number.
Listen to this audio clip for a demonstration of proper phone number pronunciation:
Pronounce the email
Pronounce the website
Pronounce the time
Handle being put on hold / no response needed
We harded coded a stop sequence in LLM: NO_RESPONSE_NEEDED
. Whenever this sequence is met, the response generation would stop.
You can then prompt the LLM to output nothing by writing something like:
Was this page helpful?