Goal
Create an agent named “Front Desk” that:- Greets the caller.
- Answers questions about hours and location.
- Uses RAG to answer specific policy questions.
- Detects voicemail if the user calls after hours (simulated).
1. Prepare Knowledge Base
First, create a text file namedcompany_info.txt:
documentation_id.
2. Configure the Agent
We need a system prompt that encourages concise, helpful answers. System Prompt:3. Testing
- Assign a phone number to this agent.
- Call the number.
- Ask: “What are your hours?” -> Expect: “We are open Monday to Friday, 9 to 5 PST.”
- Ask: “Can I return a shirt I bought last week?” -> Expect: “Yes, items can be returned within 30 days with a receipt.”