https://retellai.com/?utm_source=discord&utm_medium=seo logo
Need Help: SMS Transcripts Not Working
# ❓・bug-report
c
Hey everyone I converted my voice agent into a text/SMS agent but can’t get transcripts or chat analysis to show. What I did: Added webhook URL at agent level Added same URL in Webhook section on dashboard Tried same URL in Inbound Webhook field Nothing’s triggering. Any tips or working setup examples? 🙏 @Omar Ashraf | Community Lead @shahretell
Can you please help with that @Omar Ashraf | Community Lead
o
Hello @chadeel_62222 , can you share the details logs for this chat
c
chat_0ed2e82c91296de21c966f4e496
@Omar Ashraf | Community Lead Here is the chat id
o
Hello @chadeel_62222 , can you share the detail logs also
@Omar Ashraf | Community Lead You want these are something else?
o
Hello @chadeel_62222 , No thank you I will take that to the team to check it .
c
@Omar Ashraf | Community Lead I really appreciate that
o
just to make sure published the agent ? and i can give you my webhook to test it right now if you have nothing sensitive no this agent i can give my webhook and start a chat and end it
c
Yes I published the agent
Where I have to put that webhook?
o
Hello @chadeel_62222
On the agent level
If you want I can give you a webhook to test it
c
I am already using my make.com webhook at the agent level
So how it will be different
o
It won’t be any different, I just I want to make sure the problem is either from our side or from your set up at make
Or dm me we can go on a quick call to check it
c
It will send the end chat results on that webhook?
o
Yes
Generally in chat agents will not send the webhook till one ore two days after the chat will be open until you end it then the webhooks will be sent
c
It did send the chat end and chat analyzed events on the webhook
@Omar Ashraf | Community Lead Hello It seems like working now
now i just want to know how i can make it able to send the event "chat_started" so i can reterive the data from my data store and send it back to the agent so it can have a memory
I did use the api reference to end the chat manually and it did send these two events
@Omar Ashraf | Community Lead I really appreciate your guidance and support
o
You will get the chat started webhook on the same webhook , it will be only sent on the chat start it will not sent twice
o
Hello @chadeel_62222 , I'm checking with the team about the chat_started webhook to make sure we do send it or not but can you tell me how you going to the chat_stared webhook since this not like the call started that have a phone number that you can customize the call based on it ,
c
It will not send the number to the webhook?
I just want to create a memory for my sms agent
o
oh sorry , i though you are using it for website
c
No it's an sms agent
o
let check with the team and get back to you on this
c
I do save the calls and sms data into a data store and I want it to retrieve that data when a new chat starts
Thank you so much
o
Yes i do understand what you mean now
c
Thanks again for your guidance
@Omar Ashraf | Community Lead any update?
o
Hello @chadeel_62222 , i still got not update on this
but you can use custom function and run on the begging of the call you will get the same result
I hope that helps
c
Can you let me know what to add in that function?
I mean if I set one variable in "phone_number" custom function then it will be able to pass the phone number when a chat starts?
o
It's a normal function that will reach your server (same as the webhook) put your make.com webhook , and you will get the user phone number on it, then you can respond back the function with the information you want
c
Thank you I'll try this and give you an update
Hello @Omar Ashraf | Community Lead
I’m running into another issue. I set up the webhook function as you instructed, and it was working fine as it successfully sent the number to the webhook. After that, I added a search step to retrieve data and send it back to the agent. I used the same setup for my inbound calling agent, and the webhook is correctly sending data back from Make.com. However, when I ask the agent questions like “Do you know my name?” it doesn’t seem to remember anything from the previous conversation. I’m sharing an example of the output sent back from the Make.com workflow to the agent, along with the agent’s prompt where I defined the data for recall. Could you please review and let me know whether the issue lies in the output format I’m sending to the agent or in the prompt setup? I’d really appreciate your help with this.
Here is. the output structure which i am sending back from make.com { "retell_llm_dynamic_variables": { "call_history": [ { "Call_Type": "inbound", "last_name": "Smith", "timestamp": "November 7, 2025 11:39 PM", "first_name": "John", "Call_Summary": "John called Premier Auto Center asking about Mustangs. The agent informed him there were none available but offered other sporty cars. John showed interest in the 2021 Camaro SS, received detailed info and pictures via text, and then booked a test drive appointment for the next day at noon. The call ended with confirmation of the appointment and a positive interaction.", "phone_number": "+12025550123" }, { "Call_Type": "inbound", "last_name": null, "timestamp": "November 7, 2025 11:41 PM", "first_name": "John", "Call_Summary": "The user named John called Premier Auto Center to confirm the time of an appointment they had set up earlier. The agent, Tony, did not have the user's name or appointment details immediately available and explained that since the office was currently closed, he could not access today's bookings. The agent assured John that someone would confirm the appointment time as soon as possible. The call ended without the appointment time being confirmed or a new appointment being booked.", "phone_number": "+12025550123" } ] } }
and here is the prompt which i am using inside the agent #Call History You have access to the caller's previous call history through the {{call_history}} variable. This contains an array of previous interactions with timestamps and summaries. When the call starts: 1.⁠ ⁠Review the call history to understand the customer's previous interactions 2.⁠ ⁠Reference relevant past conversations naturally in your responses 3.⁠ ⁠Use the information to provide personalized service 4. only use this info when needed 5. If there is no previous history available in {{call_history}} and it is empty then it means that the caller is new so keep that in mind
Hello @Omar Ashraf | Community Lead
Brother can you have a look at this please
o
Hello @chadeel_62222 , you can send it normally it doesn't have to be in this format since you are using custom function to set it as variable you can use response variables but define the right path for each variable https://cdn.discordapp.com/attachments/1434154158880981003/1437014621163880508/image.png?ex=6911b3a8&is=69106228&hm=894d039587e54abdc8f6f384f58643fe0ff6da54e10a6447fae94b9cb9240ac6&
c
It is for inbound calls
Like when someone calls the agent it does send the event to make.com webhook
It sends that to inbound webhook URL
And after getting the number system do search the data record find the previous conversations and send them back as a json
o
Hello @chadeel_62222 , I totally understand your use case
and you have done everything right just for the last part which is setting up the variables , let me try to make something like that and show it to you
and just to make sure you want this for inbound calls or inbound sms ?
because if you want to do it for inbound calls you can just use the inbound web hook
but if you the inbound sms you have to use custom functions , let know which one you are using so i can make something like it for you
c
I am using both inbound calls and sms
For calls I am using inbound webhook url
And for sms I am using the custom function
And in both of the systems make.com send data back to the agent in same way which I send you above
o
Great
for the inbound call you can send variables in this format
Copy code
{
  "call_inbound": {
    "dynamic_variables": {
      "customer_name": "John Doe"
    },
    "metadata": {
      "random_id": "12345"
    }
  }
}
through the inbound web hook response
c
Ok but if we have multiple conversations or summaries which we need to pass?
And also let me know how I could mention this in the agent prompt so agent can get context of the data
Sorry If I'm asking too much questions
o
Yes , you can also send them for example you can return this response { "call_inbound": { "dynamic_variables": { "name": "John Doe", "email":"x@gmail.com", "summaries_1":"aaaaaaa etc." }, "metadata": { "random_id": "12345" } } }
I'm happy to help , ask as much you want
and you can use them in the prompt as dynamic variables
in the prompt : username : {{name}} email : {{email}} etc...
c
Thank you so much for your help. I will try this shortly and then I'll let you know if it works
Now once again thanks for your support. I really appreciate that
o
You are welcome , please let me know if you need more help with it
this is for inbound calls
for sms you will need to use custom functions in the begging of the chat
try the inbound call make sure it's working then i will help you make the sms work also
c
Hello brother
I am here again
so i did setup the workflow again in make.com
and now i have this output format which i will send back to the agent
Copy code
{
  "call_inbound": {
    "dynamic_variables": {
      "Call_Type_1": "inbound",
      "first_name_1": "John",
      "last_name_1": "Doe",
      "Call_Summary_1": "John called Horizon Auto Center asking about SUVs. The agent informed him that the 2022 RAV4 was available and shared specs and financing options. John requested pictures via text and scheduled a visit for a test drive on Tuesday at 3 PM. The call ended with a confirmed appointment and a positive tone.",
      "SMS_Summary_1": "Agent sent follow-up text with photos and appointment details.",
      "Timestamp_1": "November 7, 2025 11:39 PM",
      "phone_number_1": "+18005550123",
      "Call_Type_2": "inbound",
      "first_name_2": "John",
      "last_name_2": "Doe",
      "Call_Summary_2": "The user named John called Horizon Auto Center to confirm the time of his earlier test drive appointment. The agent, Sarah, checked the schedule but couldn’t find his booking as the system was offline. She assured him that a confirmation text would be sent soon. The call ended without a confirmed time, but follow-up was promised.",
      "SMS_Summary_2": "Agent texted later confirming appointment for Tuesday 3 PM.",
      "Timestamp_2": "November 7, 2025 11:41 PM",
      "phone_number_2": "+18005550123"
    },
    "metadata": {
      "random_id": "98765"
    }
  }
}
the json looks valid but i have some questions from you
You said we can use these as dynamic variables inside the prompt
buit what if there are multiple results?
Foe example if there are 4 summaries or more then that then how can we use them in the prompt?
o
Yes, you can use them all
You will send them through the webhook and in the prompt you can choose to use them or not.
c
No I mean if we have multiple records how we will send them and use them in the prompt
Let's suppose there are multiple records and we don't have idea about them maybe 6 or 7 then we will send them to the agent
But how we will use those as dynamic variables?
Dynamic variables are predefined right? So we can use like call summary 1 call summary 2 as predefined variables inside the prompt
But what if we have multiple summaries
o
okay for the summaries , you can do that on your server (make ) join all of them in one summary , when you fetch all the summaries from your DB join them on one summary and send it to retell as one and them them in the prompt as one variable
c
Got it
I'll try that
And let you know
o
Great
c
Hello brother
I did use chatgpt module in make.com to analyze all the previous conversations and output short summaries in a single variable
here is the output data structure { "call_inbound": { "dynamic_variables": { "previous_history": { "summary": { "call_purpose": "John asked about available SUVs and scheduled a test drive appointment.", "action_needed": "Confirm John's appointment time and send reminder text." }, "interaction_log": [ { "timestamp": "November 7, 2025 10:15 AM", "details": "John expressed interest in a 2022 Toyota RAV4 and booked a test drive for Tuesday." }, { "timestamp": "November 7, 2025 10:18 AM", "details": "John called again to confirm his appointment time, and the agent promised to follow up shortly." } ] } }, "metadata": { "random_id": "98765" } } }
now let me know can i just use the "previous_history" as single dynamic variable and pass all this data to the agent?
or i can pass in this format { "call_inbound": { "metadata": { "random_id": "98765" }, "dynamic_variables": { "call_history": "1. Key Information:\n\nCall Purpose: John inquired about available SUVs and scheduled a test drive appointment.\nAction Needed: Confirm the appointment time with John and send a reminder message.\n\n2. Interaction Log:\n\n- November 7, 2025 10:15 AM: John called to ask about SUVs and showed interest in the 2022 Toyota RAV4. After receiving details and financing options, he booked a test drive for Tuesday at 3 PM.\n- November 7, 2025 10:18 AM: John called again to confirm the test drive timing. The agent mentioned the schedule system was offline but promised to send a confirmation text later. The call ended positively." } } }
o
Hello @chadeel_62222 , use the second one the variables has to be strings
c
Hello @Omar Ashraf | Community Lead
Brother, I followed the format you suggested, and it’s working. It’s successfully passing the details to the agent. I’ve also used the variable in the prompt. However, when I run a test call, it doesn’t seem to recall my information. Could you please help me identify where the main issue might be? I’m sharing a screenshot of the call data and the prompt section where I used the dynamic variable. Please take a look and let me know what might be causing the problem.
and here is the prompt section #Call History You have access to the caller's previous call history through the {{call_history}} variable. This contains an array of previous interactions with timestamps and summaries. When the call starts: 1.⁠ ⁠Review the call history to understand the customer's previous interactions 2.⁠ ⁠Reference relevant past conversations naturally in your responses 3.⁠ ⁠Use the information to provide personalized service 4. only use this info when needed 5. If there is no previous history available in {{call_history}} and it is empty then it means that the caller is new so keep that in mind
o
What LLM are you using ?
I think its prompting issue or the llm is not smart enough
c
@Omar Ashraf | Community Lead I am using GPT 4.1 fast
o
Can you provide the chat id for this one I will take a deeper look
c
It is working now
But I am facing another issue with the sms agent
I set up the custom function, and it works fine when I test it through the Retell dashboard. But when I send an SMS from my own number, the function doesn’t run to retrieve the data.
And I did mark my chat as ended through API
But after that when I send it a sms it does reply me but my chat still shows as ended on in the chat history
@Omar Ashraf | Community Lead
o
what you mean the agent does replay after the chat ends ?
can you share the agent id , and the chat id
c
It looks like the issue was a bug. The agent was replying to my messages even after the chat ended. When I checked the chat logs, everything seemed correct. The real problem is that when I test the agent from the Playground dashboard, it calls the function to send the number to the webhook and fetch the details. But when I use the same agent through SMS, it does not trigger that function at all. I even tried instructing it explicitly to run the function, but it still did not execute it.
here is the chat ID. chat_041318e3cedf61c06c6884ce388
And here is the agent ID agent_94c6110fd1200ed23b46ed305b
@Omar Ashraf | Community Lead
Hello Brother @Omar Ashraf | Community Lead Are you there?
o
Hello @chadeel_62222
Can you reproduce this problem again ? Like it happens every time ?
c
Yes when I try the agent through retell dashboard it runs the custom function
But when I send sms it doesn't run that
o
I will check this and get back to you
c
Thank you brother
o
I see that the agent run the function at the beging of the call if you sent a new message and the chat is still open it will continue on the same conversation if you want the chat ends after a while you can do that on the chat settings so when the chat ends and you sent a new message it will start a new conversation and will send the number again https://cdn.discordapp.com/attachments/1434154158880981003/1440355322320392283/image.png?ex=691ddaed&is=691c896d&hm=047f499bb9988e0b04190b989a920a0fc340edab0e1f101d8b022ed80142c90e& https://cdn.discordapp.com/attachments/1434154158880981003/1440355323071303732/image.png?ex=691ddaed&is=691c896d&hm=9bbe7a8e14190d0744ce070044f18c106fd456f36ebdeacc4891625dc7a36700&
c
I did that but I still face the same issue
Let me do that again and I'll show you screenshots
I'll end the chat manually through API
Give me 30 minutes and I'll show you that
Hello @Omar Ashraf | Community Lead
Ok so it runs the function
But it doesn't reply to my sms now lol
Hello brother, it seems like it is working but the main issue is that when I send a message like a first message for example. Hello, it didn't response and when I send the second message for example I need a help then it give me a reply
o
The function is running as the first step
c
We don’t need it to say something; it should run that function silently and retrieve the data.
Is it because we’re sending back the response as JSON?
@Omar Ashraf | Community Lead
o
The agent runs the function and you set it to not speak during the function or after the function now its your turn to speak, enable the speak after execution on your function.