Goal
Call a customer, remind them of their appointment time, and ask for confirmation. If they confirm, we update our database (simulated via Tool).1. Create the Tool
We need a tool to update the appointment status. Tool Config:2. Configure the Agent
The agent needs a prompt that accepts variables. We use{{variable_name}} syntax in our conceptual model, but in Butter AI, we inject variables via the prompt_variables parameter in the make-call request.
System Prompt:
3. Trigger the Call
When your backend logic determines a call is needed, hit the Butter AI API. Note how we pass the specific details for this customer inprompt_variables.
4. The Conversation Flow
- Bot: “Hi, is this John Doe?”
- User: “Yes, speaking.”
- Bot: “Great. I’m calling from Dr. Smith’s office to confirm your appointment for Tomorrow at 2 PM. Can you still make it?”
- User: “Yes, I’ll be there.”
- Bot: Calls
update_appointmenttool with status=‘confirmed’ -> “Perfect, we’ve marked you as confirmed. See you then!”