How to configure and use the Pre-Answer function in Vida agents.
The Pre-Answer function allows your Vida AI phone agents to perform specific actions before answering a call. This feature is designed to enhance the caller experience by intelligently handling calls even before they are connected, using the configured functions within your agent. This is very useful for adding context to your agent at the start of a call so it can do things like Greet callers by name, fetch details from a CRM, etc.
Here is an example of how you might configure a Pre-Answer function:
Copy
Ask AI
- **Condition**: When the call is received outside business hours or during a holiday.- **Actions**: 1. Run a "Check Business Hours" webhook function to determine if the office is open. 2. If closed, customize your greeting to inform the caller of the closure and offer options (e.g., leave a voicemail or send a text message). 3. If open, proceed to route the call as normal.