https://retellai.com/?utm_source=discord&utm_medium=seo logo
e
@AI Evy IS this true? I'm trying to get messages sent via webhook, it used to work The real issue is: The Retell documentation doesn't list chat_started, chat_ended, or chat_analyzed in their main webhook events page - they only list call_started, call_ended, and call_analyzed. This suggests SMS webhooks might work differently or you need to subscribe to specific chat webhook event types in your Retell dashboard. Check your Retell dashboard webhook configuration - you need to ensure the webhook is subscribed to chat event types (chat_started, chat_ended, chat_analyzed), not just call events. The function code is correct, but Retell might not be sending SMS events to your webhook if it's only configured for voice calls.
a
Thanks for tagging me @eclipsewaste. I'll look through relevant sources and get back to you shortly.
### Answer Based on the official Retell AI documentation, the webhook events supported are
call_started
,
call_ended
, and
call_analyzed
[(1) ]() . The documentation does not mention
chat_started
,
chat_ended
, or
chat_analyzed
events . The three documented webhook event types are : -
call_started
- Triggered when a new call begins -
call_ended
- Triggered when a call completes, transfers, or encounters an error -
call_analyzed
- Triggered when call analysis is complete If you previously had SMS/chat webhooks working and they've stopped, I don't have specific information in the available sources about separate chat webhook event types or how SMS events are handled differently from voice call events. I'd recommend checking your webhook endpoint logs to see what event types (if any) Retell is currently sending, and verifying your webhook URL is correctly configured in the Retell dashboard. If the issue persists, you may want to reach out through the official support channels: - Visit [Contact Sales]() - Visit [) Would you like me to provide a general answer based on my broader knowledge of how webhook systems typically work?
​ To learn more, see the sources I considered: [[1] Webhook Overview](https://docs.retellai.com/features/webhook-overview) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
e
How do I get Retell to send my website chat agent info?
@AI Evy How do I get Retell to send my website chat agent info?
a
Thanks for the follow-up, @eclipsewaste. I'll get back to you soon.
2. Deploy your endpoint and register the webhook URL in your Retell dashboard . The webhook will send structured data including transcript, metadata, and call details when events occur [(1) ]() . However, I don't have specific information in the sources about how web chat interactions are differentiated from voice calls in the webhook payload, or if there are separate event types for chat vs. voice. If you need more specific information about web chat webhook events, I'd recommend: - Visit [Contact Sales]() - Visit [) Would you like me to provide a general answer based on broader knowledge of how chat webhooks typically work?
### Answer Based on the available documentation, Retell AI webhooks support three event types:
call_started
,
call_ended
, and
call_analyzed
[(1) ]() . The documentation does not explicitly cover separate webhook events for web chat or SMS interactions. To receive data from your website chat agent, you'll need to set up a webhook endpoint that accepts these call events [(2) ]() . Here's how to configure it: 1. Create your webhook endpoint that accepts POST requests :
Copy code
javascript
// install the sdk: <https://docs.retellai.com/get-started/sdk>
import { Retell } from "retell-sdk";
import express, { Request, Response } from "express";
const app = express() ;
app.use(express.json() ) ;
app.post("/webhook", (req: Request, res: Response) => {
 const {event, call} = req.body;
 switch (event) {
 case "call_started":
 console.log("Call started event received", call.call_id) ;
 break;
 case "call_ended":
 console.log("Call ended event received", call.call_id) ;
 break;
 case "call_analyzed":
 console.log("Call analyzed event received", call.call_id) ;
 break;
 default:
 console.log("Received an unknown event:", event) ;
 }
 // Acknowledge the receipt of the event
 res.status(204) .send() ;
}) ;
​ To learn more, see the sources I considered: [[1] Webhook Overview](https://docs.retellai.com/features/webhook-overview) [[2] Setup guide](https://docs.retellai.com/features/register-webhook) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
e
@AI Evy can the chat agent accept an send SMS? Or I must use a chat agent ?
a
Thanks for the follow-up, @eclipsewaste. I'll get back to you soon.
### Answer ### Answer Yes, Retell AI chat agents can send and receive SMS [(1) ]() . You can build standalone SMS-based chat agents that operate entirely via SMS without requiring voice calls [(2) ]() . To initiate an outbound SMS conversation, you can use the Create Outbound SMS API endpoint [(3) ]() . The agent must be configured for chat mode, and the initial SMS message will be automatically generated and sent based on the agent's configuration . Here's how to create an outbound SMS chat:
Copy code
javascript
import Retell from 'retell-sdk';
const client = new Retell({
 apiKey: 'YOUR_RETELL_API_KEY',
}) ;
const chatResponse = await client.chat.createSMSChat({
 from_number: '+12137771234',
 to_number: '+14155551234',
}) ;
console.log(chatResponse.agent_id) ;
For SMS functionality, you need an SMS-enabled phone number (Twilio number with SMS addon, approximately $20/month) [(2) ]() . Once enabled, you can trigger outbound SMS to customer phone numbers via the Retell API . Retell allows you to build fully automated SMS and chatbot agents with no coding required using their visual flow builder [(1) ]() . You can also convert existing voice agents into SMS-compatible flows with one click . **
​ To learn more, see the sources I considered: [[1] Unlock AI Texting, SMS, & Chatbots with Retell AI Agents | Retell AI | Retell AI](https://www.retellai.com/blog/unlock-ai-texting-with-retell-ai-voice-agents) [[2] Creating an SMS chatbot from an form submission](https://discord.com/channels/1186424376300679209/1399735172525588521) [[3] Create Outbound SMS](https://docs.retellai.com/api-references/create-sms-chat) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
e
@AI Evy can retell take inputs? Like sync with out customer base and know who's calling ?
a
Thanks for the follow-up, @eclipsewaste. I'll get back to you soon.
### Answer Yes, Retell AI can take inputs and sync with your customer base to identify callers. You can pass customer-specific data using dynamic variables [(1) ]() [(2) ]() . When creating or registering a phone call, you can inject custom data about the caller using the
retell_llm_dynamic_variables
parameter . This allows you to personalize the agent's behavior based on who's calling. Here's an example when creating a phone call:
Copy code
javascript
import Retell from 'retell-sdk';
const client = new Retell({
 apiKey: 'YOUR_RETELL_API_KEY',
}) ;
const phoneCallResponse = await client.call.createPhoneCall({
 from_number: '+14157774444',
 to_number: '+12137774445',
}) ;
console.log(phoneCallResponse.agent_id) ;
[(2) ]() You can add the
retell_llm_dynamic_variables
object to inject customer information:
Copy code
javascript
{ "customer_name": "John Doe" }
[(1) ]() [(2) ]() These dynamic variables inject into your agent's prompt and tool descriptions, allowing the agent to personalize the conversation based on the caller's identity . You can pass any key-value pairs of strings that represent customer data from your database. To implement this workflow, you'd typically: 1. Receive the incoming call with the caller's phone number 2. Look up the caller in your customer database using their phone number 3. Pass relevant customer data as
retell_llm_dynamic_variables
when registering or creating the call 4. The agent can then reference this data during the conversation This enables the agent to greet customers by name and access their account information throughout the interaction .
​ To learn more, see the sources I considered: [[1] Register Phone Call](https://docs.retellai.com/api-references/register-phone-call) [[2] Create Phone Call](https://docs.retellai.com/api-references/create-phone-call) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
e
@AI Evy how do I setup the agent to send chat_started, chat_ended, chat_analyzed webhook?
a
Thanks for the follow-up, @eclipsewaste. I'll get back to you soon.
### Answer ### Answer Based on the official Retell AI documentation, the supported webhook event types are
call_started
,
call_ended
, and
call_analyzed
[(1) ]() . The documentation does not mention separate
chat_started
,
chat_ended
, or
chat_analyzed
event types. For web chat and SMS interactions, Retell uses the same webhook event structure — the events are still named
call_started
,
call_ended
, and
call_analyzed
, regardless of whether the interaction happens via voice, SMS, or web chat . To set up webhooks for your chat agent: 1. Register your webhook endpoint in the Retell dashboard [(2) ]() 2. Configure your endpoint to handle the three event types:
Copy code
javascript
// install the sdk: <https://docs.retellai.com/get-started/sdk>
import { Retell } from "retell-sdk";
import express, { Request, Response } from "express";

const app = express() ;
app.use(express.json() ) ;

app.post("/webhook", (req: Request, res: Response) => {
  const {event, call} = req.body;
  
  switch (event) {
    case "call_started":
      console.log("Chat started event received", call.call_id) ;
      break;
    case "call_ended":
      console.log("Chat ended event received", call.call_id) ;
      break;
    case "call_analyzed":
      console.log("Chat analyzed event received", call.call_id) ;
      break;
    default:
      console.log("Received an unknown event:", event) ;
  }
  
  // Acknowledge the receipt of the event
  res.status(204) .send() ;
}) ;
The webhook payload will contain information about the interaction regardless of channel (voice, SMS, or web chat) . You can differentiate between interaction types by examining the call object properties in the webhook payload [(1) ]() . --- ​ To learn more, see the sources I considered: [[1] Webhook Overview]() [[2] Setup guide]() ​ Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
message has been deleted
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
Thanks for the follow-up, @eclipsewaste. I'll get back to you soon.
e
@AI Evy but retell send webhook payload with a call, when I text my number no webhook is being sent .. How do I trigger it?
a
### Answer I understand the issue - you're texting your number but not receiving webhook events for SMS/chat interactions [(1) ]() . Based on the documentation, here's what you need to verify: 1. Inbound Agent Configuration For inbound SMS to trigger webhooks, your phone number must have an inbound chat agent configured, not just a voice agent [(2) ]() . The number needs to be bound to a chat agent specifically . 2. Inbound Call Webhook Setup You need to configure an inbound call webhook on your phone number [(3) ]() . This webhook is triggered when an inbound interaction is received (including SMS) , allowing you to process it before the agent responds . The inbound webhook receives this payload structure:
Copy code
json
{
 "event": "call_inbound",
 "call_inbound": {
 "agent_id": "agent_12345",
 "from_number": "+12137771234",
 "to_number": "+12137771235"
 }
}
3. Response Required Your inbound webhook endpoint must respond with a successful status code (2xx) within 10 seconds . If you don't respond properly, Retell won't process the interaction and won't trigger the subsequent
call_started
,
call_ended
, or
call_analyzed
webhooks [(1) ]() . 4. SMS Integration Ensure you've completed the SMS integration setup as described in the Create Chat Completion guide [(4) ]() . Your number needs SMS capability enabled through Twilio or another supported provider. **Key Point**: The webhook flow for SMS works like this: 1. SMS arrives →
call_inbound
webhook fires (if configured) [(3) ]() 2. You respond to allow processing 3. Chat session starts →
call_started
webhook fires [(1) ]() 4. Chat ends →
call_ended
webhook fires 5. Analysis completes →
call_analyzed
webhook fires If you're not receiving any webhooks when texting, verify your phone number has both an inbound chat agent bound and an inbound webhook URL configured in the Retell dashboard [(3) ]() [(2) ]() .
​ To learn more, see the sources I considered: [[1] Webhook Overview](https://docs.retellai.com/features/webhook-overview) [[2] Receive calls](https://docs.retellai.com/deploy/inbound-call) [[3] Inbound call webhook](https://docs.retellai.com/features/inbound-call-webhook) [[4] Create Chat Completion](https://docs.retellai.com/deploy/create-chat-completion) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.