New$5 of credit for every new workspace. Build and test your first agent on us.$5 credit for new workspacesStart buildingClaim it →

· Developers

Pre-call webhooks: personalize outbound AI calls

Add your own data to an outbound call before the agent says a word.

Overview

A pre-call webhook calls one of your API tools before an outbound AI call starts and copies fields from the response into variables. Your agent knows who it's calling and why from its first word.

An outbound call that opens with a generic greeting, or asks for details you already have, wastes the customer's time and lowers trust. The data usually lives in your own CRM or database, and getting it into the call meant passing it on every request or building a separate sync.

With a pre-call webhook, Feather runs an API tool you've already set up, with its secrets and placeholders, just before the call is placed. You map fields in the response, such as data.customer.name, to your agent's variables. Values that the request already provided are kept, and fetched values only fill variables that are still empty. A value that doesn't fit the variable's type is skipped. If the request fails, the call goes ahead without it, so a slow or broken endpoint never blocks your calls.

Each run shows up in the session trace, so you can see what was fetched. The webhook also runs on test web calls from the dashboard and in voice simulations, which lets you check personalization before it reaches customers. The API tool receives the agent's variables with matching names, and it can also use built-in phone variables such as {{feather.customer_phone}}, so a lookup by phone number needs no extra setup.

Use cases

  • 01

    Personal greetings

    Look up the customer's name and account status so the agent opens with "Hi Maria, I'm calling about your renewal."

  • 02

    Appointment confirmations

    Fetch the next appointment time and location before a reminder call so the agent can confirm the details.

  • 03

    Collections context

    Load the outstanding balance and due date so the agent can discuss the right amount without asking.

What’s included

  • Outbound calls. Runs before outbound calls and before test web calls from the dashboard.
  • Your API tools. Uses an API tool you've already set up, with its secrets and placeholders.
  • Response mapping. Map response paths such as data.customer.name to your agent's variables.
  • Existing values win. Fetched values only fill variables that are still empty.
  • Type-safe. A value that doesn't fit the variable's type is skipped.
  • Fail-open. If the request fails, the call goes ahead without it.
  • Traceable. Each run appears in the session trace.

How to use it

  1. 01

    Create an API tool in Tools that looks up the customer.

  2. 02

    Declare the variables you want to fill on the agent's Build tab.

  3. 03

    Go to the agent's Channels tab and find Pre-call webhook.

  4. 04

    Turn on Run before outbound calls and choose the API tool.

  5. 05

    Map response fields to variables.

  6. 06

    Save, and place a test web call to check the values in the trace.

In the APIAgent revisions take a pre_call_webhook object with tool_id and response_mapping.

For the full reference, read the Feather docs, or talk to us.

Frequently asked questions

Yes. A pre-call webhook calls one of your API tools before the call starts and copies fields from the response into the agent's variables.

Build the agent. We’ll handle everything else.

Start free in the console, or talk to us about running your contact center on Feather.