Skip to main content
This recipe shows how to trigger outbound calls to a list of customers to confirm their upcoming appointments.

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 in prompt_variables.

4. The Conversation Flow

  1. Bot: “Hi, is this John Doe?”
  2. User: “Yes, speaking.”
  3. Bot: “Great. I’m calling from Dr. Smith’s office to confirm your appointment for Tomorrow at 2 PM. Can you still make it?”
  4. User: “Yes, I’ll be there.”
  5. Bot: Calls update_appointment tool with status=‘confirmed’ -> “Perfect, we’ve marked you as confirmed. See you then!”