Warpflow
For Developers

Zapier Integration

Call the synchronous pipeline and standalone actions from automation platforms.

Authentication

Use a tenant API key in Authorization: Bearer <api_key>. See Authentication. These HTTP endpoints work with Zapier Webhooks, Make HTTP modules, n8n HTTP Request nodes, or custom backends. Custom webhooks use a separate source credential; see Webhooks.

Full Pipeline

POST /api/v1/webhook/zapier/{tenant_id}
Content-Type: application/json
Authorization: Bearer <api_key>
{
  "message": "I need a quote for a kitchen remodel. Budget is $40k.",
  "contact": { "name": "Jane Doe", "email": "jane@example.com", "phone": "+15551234567" },
  "channel": "webhook",
  "source": "zapier",
  "metadata": { "form_id": "abc123" }
}

A nonempty message is required. contact is optional and accepts name, first_name, last_name, email, and phone; channel accepts email, sms, voice, chat, or webhook and defaults to webhook. source defaults to zapier. Send message at the top level, rather than content.body.

This endpoint scores the contact with heuristic scoring and evaluates your routing rules. It doesn't call an AI model, so classification and reply are always null. Use the standalone actions below for AI classification or a reply. Response 200:

{
  "signal_id": "zapier_acme_123",
  "classification": null,
  "score": { "score": 78, "tier": "hot", "recommended_actions": ["follow_up"] },
  "matched_rules": 1,
  "actions_triggered": ["escalate"],
  "reply": null
}

score may be null when a step is skipped or suppressed. matched_rules is a count, and actions_triggered lists the action types of the matched rules.

The response never carries message content: no classification summary and no reply text. signal_id identifies the run. It isn't a lookup key, and no endpoint available to an API key returns message content for it.

Standalone actions

MethodPath
POST/api/v1/actions/zapier/{tenant_id}/score-contact
POST/api/v1/actions/zapier/{tenant_id}/classify-conversation
POST/api/v1/actions/zapier/{tenant_id}/generate-reply

These accept the same nonempty message, optional nested contact, and channel as above. They do not accept conversation history or flat contact_name fields. Responses use { "success": true, "data": { ... } } on success.

score-contact uses heuristic scoring and returns the score, tier, signals, and recommended actions. A failed score returns 400 with { "success": false, "error": "..." }.

classify-conversation and generate-reply call an AI model, and generate-reply runs the reply safety checks on what it writes. Before the AI model sees the message, Signals drops the contact's name fields and redacts phone numbers, email addresses, and similar identifiers in the text. Signals redacts a name written inside the message itself only on accounts with full detection, which healthcare, dental, and med spa accounts have by default. These actions return labels and a signal_id, never message content:

{
  "success": true,
  "data": {
    "signal_id": "zapier_action_abc123",
    "intent": "quote_request",
    "urgency": "medium",
    "sentiment": "positive",
    "confidence": 0.92
  }
}

generate-reply returns signal_id, channel, requires_approval, final_recommendation, requires_expert, intent, and urgency. intent and urgency are null when classification failed but a reply was still written. The reply text isn't returned, so this action tells you whether a reply could be written and how it was judged, not what it says.

When the AI step can't complete, these return 503 SERVICE_UNAVAILABLE with the signal_id in error.details. That happens when redaction fails, the model call fails, a routing rule sends a template instead, or only a template fallback could be produced. A run that takes longer than 25 seconds returns 504 GATEWAY_TIMEOUT.

Usage and errors

Authenticated requests to the full pipeline endpoint and the standalone actions share one budget of 60 requests per minute per tenant, and get 429 RATE_LIMITED beyond it. Requests that fail authentication don't count against it. Each client IP address can make 60 failed authentication attempts per minute, across the whole API, before getting 429. The standalone actions are also limited to 60 requests per minute per client IP across all /api/v1/actions endpoints. Standalone actions also check tenant usage caps and return 429 USAGE_LIMIT_REACHED or AI_LIMIT_REACHED when blocked. message is limited to 32,768 characters, and contact fields to the same lengths as a contact record. Invalid JSON or payload returns 400, and an unknown tenant returns 404.

classify-conversation and generate-reply count as AI usage whenever the AI step was attempted, including one that failed or timed out. score-contact never counts as AI usage. Check Settings → Plan & Usage in the dashboard.

Example automation

Create a tenant API key in Settings → API Keys. In Zapier, configure a Webhooks POST action to the full pipeline endpoint, map form content into message, and supply your key in the Authorization header. Branch on score.tier when score is present, or route for human review when a pipeline step is suppressed.

GHL workflow actions

POST /api/v1/actions/ghl/{action_key} dispatches a registered GHL custom workflow action. The legacy alias is POST /api/v1/actions/{action_key}. Both require a Bearer credential accepted by the application authentication middleware. The JSON body must supply extras.locationId and extras.contactId; the location must be installed and mapped to a tenant. A location ID alone does not authenticate the request. The response is action-specific; unknown actions or missing IDs return 400, missing locations/configuration return 404, and missing GHL OAuth configuration returns 503.

On this page

We use cookies to understand how you use our site and improve your experience. Privacy Policy