New to Integrations? Check out Native Integrations first for pre-built connections with popular platforms like HubSpot, Salesforce, and Calendly.
Webhook Success Tips
- Start Simple: Begin with basic webhook configurations before adding complexity
- Test Thoroughly: Validate both success and failure scenarios
- Monitor Performance: Track webhook response times and success rates
- Plan for Scale: Design endpoints to handle your expected call volume
- Document Integration: Maintain clear documentation for your webhook implementations
Understanding Webhooks in Thoughtly
Unlike native integrations, webhooks in Thoughtly are not configured globally. Instead, they are set up at the point of use within:- Automations: Custom webhooks for post-call processing and workflow triggers
- Agent Builder: Real-time webhooks for mid-call actions and live data updates
Webhook Configuration Locations
In Automations
Webhooks in automations trigger based on call events and workflow conditions:- Navigate to Automations in the sidebar
- Create or edit an automation workflow
- Add webhook action within the automation builder
- Configure endpoint URL, headers, and payload
- Updating CRM records after call completion (see native CRM integrations)
- Triggering follow-up emails or SMS campaigns
- Syncing call outcomes with business intelligence systems
- Creating tasks or tickets in project management tools
In Agent Builder (Mid-call Actions)
Webhooks in the Agent Builder enable real-time interactions during active phone calls:- Open Agent Builder for your target agent
- Navigate to Mid-call Actions section
- Add webhook action within the agent’s workflow
- Configure real-time endpoint and response handling
- Looking up customer information during calls
- Updating external systems with live call data
- Triggering real-time notifications to support teams
- Retrieving dynamic pricing or inventory information
Webhook Configuration Elements
Essential Configuration
Endpoint URL: The target URL where Thoughtly will send HTTP requests HTTP Method: Typically POST for data submission Headers: Authentication tokens, content-type, and custom headers Payload: JSON data structure sent to your endpointAuthentication Options
API Key Authentication:Payload Structure
Thoughtly sends structured JSON payloads containing:- Call Information: Call ID, duration, participants, outcome
- Agent Data: Agent ID, agent name, assigned phone number
- Custom Fields: Any additional data configured in your automation or agent
Webhook Development Guidelines
Endpoint Requirements
Response Time: Design endpoints for quick responses (< 5 seconds recommended) HTTP Status Codes: Return appropriate status codes (200 for success, 4xx for client errors) Error Handling: Implement proper error responses for debuggingSecurity Best Practices
Secure Your Webhooks
- HTTPS Only: Always use HTTPS endpoints for secure data transmission
- Authentication: Implement proper API key or token-based authentication
- Input Validation: Validate all incoming webhook data before processing
Payload Processing
JSON Parsing: Ensure robust JSON parsing with error handling Data Validation: Verify required fields exist before processing Idempotency: Design endpoints to handle duplicate webhook calls gracefullyTesting and Validation
Initial Setup Testing
- Configure webhook with test endpoint
- Trigger the automation or agent action
- Verify payload delivery and format
- Confirm your endpoint receives and processes data correctly
Error Handling and Monitoring
Monitoring Recommendations
Logging: Maintain logs of all webhook calls and responses Alerting: Set up monitoring for webhook failures or slow responses Health Checks: Regular endpoint availability testingCommon Use Cases
CRM Synchronization
Automation Webhook: Update customer records after each callReal-time Data Retrieval
Mid-call Webhook: Fetch customer information during callsNotification Systems
Automation Webhook: Alert teams about important call outcomesPerformance Considerations
- Latency Impact: Mid-call webhooks can affect call quality if endpoints are slow
- Concurrent Calls: Ensure your endpoints can handle multiple simultaneous requests
- Rate Limiting: Consider implementing rate limiting for high-volume scenarios
Expected Results
After successful webhook configuration: For Automations:- Webhooks trigger automatically after configured call events
- External systems receive structured call data
- Business processes update based on call outcomes
- Real-time data exchange during active calls
- Dynamic agent responses based on external data
- Live updates to external systems during conversations
No Automatic RetriesThoughtly does not implement automatic retry policies for failed webhook deliveries. Design your integration to handle:
- Network Failures: Temporary connection issues
- Endpoint Downtime: Service availability problems
- Authentication Errors: Token expiration or invalid credentials
Advanced: Triggering Automations with Webhooks
You can also trigger Thoughtly automations from external systems using webhook triggers. This allows you to start Voice Agent calls or run automations based on events in your other tools. For more information, see:Current Limitations
- No automatic retries for failed webhook deliveries
- No built-in webhook delivery logging in Thoughtly interface
- Configuration required per automation/agent (no global webhook settings)
See Also
- Native Integrations - Pre-built integrations with popular platforms
- Automations Overview - Learn about automation workflows
- Agent Actions - Configure mid-call actions in agents
- Automation Actions - Available actions for automations
- Automation Triggers - Trigger automations with webhooks