> ## Documentation Index
> Fetch the complete documentation index at: https://vida.io/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Instructions

> Define your Agent's role, goals, boundaries, and behavior.

Instructions define what your Agent does, what it represents, how it should handle customer interactions, and which boundaries it must follow. Treat them like an operating guide for a new team member: be specific, resolve conflicting rules, and include representative examples.

## Example Prompt

Below is an example Instructions prompt for a restaurant agent.

```plaintext theme={null}
## Personality:
"You are a bubbly hostess who is energetic. Speak naturally."

## Greeting:
"Hello! Thank you for calling Ginko Sushi. My name is Jillian. How can I assist you today?"

## Providing Information on Open Hours:
"Our open hours are Monday through Friday from 12 PM to 9 PM, and on Saturday and Sunday from 12 PM to 10 PM. Is there anything else I can help you with?"

## Mentioning Daily Specials:
"Today's specials include a Spicy Rainbow Roll for $18 and a Lobster Roll paired with a Filet Roll for $29. The Spicy Rainbow Roll features a mix of spicy tuna, salmon, and avocado, topped with a vibrant combination of fresh fish and spicy aioli. The Lobster Roll and Filet Roll combo includes a rich and creamy lobster roll complemented by a succulent filet roll, perfect for surf and turf lovers. Would you like to hear more about any of our other menu items?"

## Providing Wait Time:
"Currently, the wait time is between 30 to 45 minutes. You may ask if they would like to put their name on the list for call ahead seating."

## Restaurant Location:
12160 West Parmer Lane Cedar Park Texas

## Taking Reservations:
"Reservations available today between 6:45 PM and 8:30 PM. For any other day in the future, availability is open during all hours of operation. Ask how large your party will be. Ask if caller prefers indoor or outdoor seating? Ask for their preferred reservation time, name, and phone number. You can not accept reservations or call aheads for parties over 8. Repeat the reservation details back to the caller. Tell them the time of the reservation, name, and number of people."

## Closing: (if the user decides not to reserve)
"Thank you for calling Ginko Sushi! Have a great day and we hope to serve you soon."
```

For best results, give your Agent a clear role and measurable goals. Use the
[Agent examples](https://vida.io/docs/examples/home-services.md) as starting points, then adapt the workflow, boundaries,
and success criteria to the real business.

### Best Practices

* **Be Clear and Specific**: Provide detailed instructions to ensure the agent understands how to handle different scenarios.
* **Reflect Your Brand**: Make sure the agent’s personality and tone align with your brand identity.
* **Regular Updates**: Update the instructions regularly to keep the information current and accurate.
* **Test and Refine**: Continuously test the agent’s performance and refine the instructions based on feedback and observations.

Review the instructions whenever the workflow, policy, or connected systems change. Test the hardest expected cases before publishing.

## IVR navigation

Outbound Agents can navigate interactive voice response (IVR) menus by sending DTMF keypad tones.
Add instructions that explain which person or department to reach and when to send each key.

> [!NOTE]
>
> Use [standard speech mode](https://vida.io/docs/agents/voice.md#standard-and-speech-to-speech-modes) for this workflow.
> DTMF tags are processed by text-to-speech (TTS); native speech-to-speech output does not use this
> tag handler.

### Send keypad tones

Have the Agent output `<DTMF digits="1"/>` to press 1. Vida sends the keypad tone and removes the tag
from the spoken response. The `digits` value supports `0`–`9`, `*`, `#`, and the DTMF keys `A`–`D`.

| Agent output | Keypad action |
| - | - |
| `<DTMF digits="1"/>` | Press 1. |
| `<DTMF digits="1234#"/>` | Enter 1234, then press #. |
| `<DTMF digits="1,,,,2"/>` | Press 1, wait 2 seconds, then press 2. |
| `<DTMF digits=",,,,1"/>` | Wait 2 seconds, then press 1. |

Each comma represents a 0.5-second pause. Without commas, the default gap after a key is 0.5 seconds.
Commas immediately after a key set its gap: four commas mean a 2-second gap, replacing the default.

### Example instructions

Adapt this prompt to the destination and the goal of the call:

```plaintext theme={null}
When an automated phone menu answers, listen to the options and choose the one that reaches the
billing department. To press a key, output only a DTMF tag such as <DTMF digits="1"/> with the
appropriate digits. Wait for the next menu prompt before selecting another option. If the system
requests an extension followed by pound, output the extension and # in one tag, for example
<DTMF digits="1234#"/>. Once a person answers, continue the conversation normally.
```

Test a staged outbound call against the destination IVR before publishing. Menu timing varies, so
prefer listening for the next prompt over sending a fixed sequence for several menus. Use commas
when the destination needs an explicit delay.
