Skip to main content
Simple AI lets you run workflows before and after calls — not just simple HTTP requests, but full sequences of actions that can look up data, enrich context, run business rules, trigger downstream systems, and orchestrate multi-step processes.

Pre-Call Workflows

Pre-call workflows run before a call starts. They give you a window to prepare for the conversation — looking up the caller, loading their account data, checking for open issues, running routing logic, or anything else that helps the agent start the call with full context. Think of it as a journey that runs before the first word is spoken.

What You Can Do

  • Look up the caller — query your CRM, database, or identity provider by phone number to identify who is calling
  • Load account context — pull in account status, plan details, recent orders, open tickets, or any other data the agent needs
  • Run routing logic — decide which agent or flow to use based on the caller’s profile, time of day, or business rules
  • Check for open issues — see if the caller has an active support case and pass that context into the call
  • Enrich from multiple sources — call multiple APIs in sequence or in parallel to build a complete picture before the agent picks up
  • Apply business rules — flag VIP customers, check eligibility, validate accounts, or set priority levels

How It Works

  1. A call comes in to a number with an assigned agent
  2. Simple AI triggers your pre-call workflow
  3. Your workflow runs its logic — database lookups, API calls, business rules, whatever you need
  4. Your workflow responds with a parameters object
  5. Simple AI merges those parameters into the call
  6. The agent starts the conversation with full context already loaded

Example

Your pre-call workflow receives the incoming call details:
{
  "call": {
    "from_number": "+15551234567",
    "to_number": "+15559876543",
    "direction": "inbound",
    "timestamp": "2026-04-12T14:30:00Z"
  },
  "agent": {
    "id": "agent-uuid",
    "name": "Support Agent"
  }
}
Your workflow looks up the caller across your systems and responds:
{
  "parameters": {
    "customer_name": "Sarah Johnson",
    "account_id": "ACCT-789",
    "plan": "Enterprise",
    "open_tickets": 2,
    "last_call_summary": "Called about billing discrepancy on March invoice",
    "vip": true
  }
}
Now the agent knows who is calling, can greet them by name, reference their plan, pick up where the last conversation left off, and treat them as a VIP — all before the caller says a word.

Configuration

Configure pre-call workflows on an agent via the dashboard or the Update Agent API:
  • pre_call_webhook_url — your workflow endpoint
  • pre_call_webhook_auth_token — optional bearer token for authentication
  • pre_call_webhook_timeout — how long to wait for a response (default: 5 seconds)
  • pre_call_webhook_enabled — set to true to activate
If your workflow times out or returns an error, the call proceeds normally without the extra parameters. See Call Flow for the full call lifecycle and where pre-call workflows fit in.

Post-Call Workflows

Post-call workflows run after a call completes. They let you trigger a full sequence of downstream actions — not just a single notification, but an entire journey of follow-up steps.

What You Can Do

  • Sync to your CRM — create or update contact records, log call activity, attach transcripts and recordings
  • Send follow-ups — trigger follow-up emails, SMS messages, or scheduled callbacks based on what happened on the call
  • Update tickets — create, update, or resolve support tickets based on the call outcome
  • Route to humans — alert your team when a call needs manual follow-up, assign tasks, or escalate to a manager
  • Feed analytics — push call data, analyzer results, and sentiment scores into your data warehouse or BI tools
  • Run multi-step workflows — chain together any combination of the above. A single call completion can kick off a CRM update, a follow-up email, a Slack notification, and a task assignment all at once

Available Events

Simple AI fires two events that can trigger post-call workflows:
  • call.completed — fires when a call ends. Use this to kick off your post-call workflow.
  • call.transcript_update — fires during the call with transcript updates. Use this for real-time monitoring or mid-call actions.
See Webhooks for setup details and payload formats.

Example: Post-Call Journey

A typical post-call workflow might look like:
Call completes
  → Log the call in Salesforce as an activity on the contact record
  → If the call was tagged "follow-up needed":
      → Create a task in your project management tool
      → Send a Slack message to the account owner
      → Schedule a follow-up call in 48 hours
  → If the analyzer detected a qualified lead:
      → Update the lead stage in your CRM
      → Notify the sales team
  → Push the call transcript and sentiment data to your data warehouse
You can build this kind of orchestration using Zapier, custom code on your own server, or any workflow automation tool that accepts webhooks.

Best Practices

  • Keep pre-call workflows fast — the default timeout is 5 seconds. If you need to do heavy processing, return the essentials quickly and handle the rest asynchronously.
  • Return only what the agent needs — do not send your entire customer record. Pick the fields the agent will actually use in the conversation.
  • Make post-call handlers idempotent — due to retries, your server may receive the same event more than once. Processing the same event twice should be safe.
  • Log everything — log incoming requests and outgoing responses so you can debug issues in your workflows.
  • Use authentication — set an auth token on your pre-call workflow and validate it on your server to prevent unauthorized requests.
  • Think in journeys — pre-call and post-call workflows are at their most powerful when you treat them as full orchestration points, not just single API calls. Chain together the actions that make sense for your business.