Operator AI | Docs
  • πŸ‘‹Welcome to Operator AI
  • Getting Started
    • πŸš€Quickstart Guide
    • πŸ”ŒConnect Your Channels
    • 🎯Go Live With Operator
    • πŸ“ˆPost-Launch Best Practices
  • Core Features
    • πŸ”„Flows Overview
    • 🧠Building Your Knowledge Base
    • βš™οΈAutomations Overview
    • πŸ•’Hours & Offline Mode
    • πŸ’¬Fallbacks & Default Replies
    • πŸ“₯Unified Inbox & Agent Handoff
  • Conversation Management
    • πŸ‘₯Users and Roles
    • 🏒Departments
    • 🏷️Tags & Organization
    • πŸ“Internal Notes
    • πŸ€–Smart Replies
  • πŸ’¬Saved Replies
  • Integrations
    • πŸ”—Zapier Integration
    • πŸ’¬Slack Integration
    • πŸ“§Email Marketing
    • πŸ“±WhatsApp Business API Setup
    • πŸ”ŒWebhooks and API
  • Best Practices
    • πŸ›€οΈDesigning Effective Flows
    • 🌱Using Automations for Growth
    • πŸ“ŠMonitoring Metrics and Optimization
    • πŸ—£οΈConversation Design Tips
  • Troubleshooting
    • πŸ› οΈCommon Connection Issues
    • πŸ”Conversation Handling Errors
    • πŸ”„Flow Troubleshooting
    • πŸ’¬Fallback Handling Problems
  • πŸ”§API & Webhook Issues
  • FAQ
    • ❓General Operator AI Questions
  • πŸ“‘Channel-specific Limitations
  • πŸ’³Billing and Pricing
  • πŸ”“Data Privacy and Security
  • API Reference
    • πŸ›‘οΈAuthentication
  • πŸ“šAvailable Endpoints
  • πŸ”—Webhooks Overview
  • 🧩Example API Requests
  • 🚫Error Codes and Handling
  • Affiliate Program
    • πŸ“’ Operator AI Affiliate Program
Powered by GitBook
On this page
  • πŸ”— What Are Webhooks?
  • πŸ“ˆ Common Webhook Events Available
  • πŸ› οΈ How to Set Up Webhooks
  • πŸ”₯ Example Webhook Payload
  • πŸ“‹ Best Practices for Webhooks
  • 🧠 Advanced: Multiple Webhook URLs
  • πŸ›Ÿ Need Help?
  • 🎯 Next Step

Webhooks Overview

Webhooks allow Operator AI to send real-time event data to your systems β€” enabling automation, integration, and real-time reactions outside of Operator.


πŸ”— What Are Webhooks?

  • When an event happens in Operator AI (e.g., a new conversation, new user, lead captured), Operator can automatically send a POST request with the event data to your external URL.

  • Your system can then process, store, or act based on that information.

βœ… Webhooks make Operator AI deeply connected to your stack β€” instantly.


πŸ“ˆ Common Webhook Events Available

Event
When It Triggers

New Conversation

A visitor or user starts a new chat or interaction.

New Message

A new message is sent in a conversation (user or agent side).

New User

A new user is created (from signup, chat start, API call, etc.).

Conversation Closed

A conversation is archived or ended.

Tag Applied

A user gets tagged via automation, agent, or system event.

Lead Captured

A Flow successfully captures a lead (email, phone, etc.).

βœ… Covering the most important user interaction and automation points.


πŸ› οΈ How to Set Up Webhooks

  1. Log into your Operator AI Dashboard.

  2. Go to Settings β†’ Miscellaneous β†’ Webhooks.

  3. Enter your Webhook URL (must be HTTPS).

  4. Select the types of events you want to subscribe to.

  5. Save your settings.

βœ… Now Operator AI will start POSTing event payloads to your endpoint.


πŸ”₯ Example Webhook Payload

Example for a New Conversation event:

{
  "event": "new_conversation",
  "data": {
    "conversation_id": "123456",
    "user_id": "78910",
    "channel": "web",
    "started_at": "2025-04-11T14:22:05Z"
  }
}

βœ… Your server will receive real-time JSON payloads you can use in your systems.


πŸ“‹ Best Practices for Webhooks

Tip
Why It Matters

Always respond with 2xx HTTP codes

Operator expects a successful response (like 200 OK).

Implement retries for failures

Webhooks should retry if delivery fails temporarily.

Validate incoming Webhooks

Use HMAC signatures (optional) or check payload structure to prevent spoofing.

Log received Webhooks

Useful for debugging and monitoring.

Keep your Webhook URL private

Avoid exposure to random POST requests.

βœ… Well-handled Webhooks = real-time reliability and scaling.


🧠 Advanced: Multiple Webhook URLs

  • You can send Webhooks to multiple Zapier zaps or endpoints by entering comma-separated URLs.

  • Example: https://hooks.zapier.com/abcd, https://api.yourcrm.com/webhook

βœ… Distribute events flexibly across your connected tools.


πŸ›Ÿ Need Help?

  • Explore Webhook setup and payload examples inside this documentation.

  • Contact support@heyoperator.ai for Webhook debugging help.

  • Your Success Manager can help architect real-time automations using Webhooks + API.

βœ… We’re here to make your systems smarter and faster.


🎯 Next Step

πŸ‘‰ Continue to Example API Requests β†’


PreviousAvailable EndpointsNextExample API Requests

Last updated 2 months ago

πŸ”—