Skip to main content
This recipe demonstrates how to build a capable inbound receptionist that can answer common questions and, if necessary, take a message or escalate.

Goal

Create an agent named “Front Desk” that:
  1. Greets the caller.
  2. Answers questions about hours and location.
  3. Uses RAG to answer specific policy questions.
  4. Detects voicemail if the user calls after hours (simulated).

1. Prepare Knowledge Base

First, create a text file named company_info.txt:
Upload this via the API:
Save the documentation_id.

2. Configure the Agent

We need a system prompt that encourages concise, helpful answers. System Prompt:
API Request:

3. Testing

  1. Assign a phone number to this agent.
  2. Call the number.
  3. Ask: “What are your hours?” -> Expect: “We are open Monday to Friday, 9 to 5 PST.”
  4. Ask: “Can I return a shirt I bought last week?” -> Expect: “Yes, items can be returned within 30 days with a receipt.”