https://discord.gg/botpress logo
Sending custom event with transcript
# 🤝help
s
Hi, I want to use the Send Custom Event card to send the transcript to the frontend client for my Webchat. Right now I'm using the JSON
Copy code
{
  "transcript": "{{conversation.summaryAgent.transcript}}"
}
, but I keep getting an error. Does anyone know why this might be? I suspect it has to do with the type of transcript, but I'm not sure.
b
hey. can't diagnosis with only one line code.
s
I mean, its the only code in the Send Custom Event card
Not sure what else I could send, the event is not correctly sending due to some sort of type error?
Is there any other information that could be useful?
p
Could you please send the error you are facing and any surrounding logs?
these are the arguments
Copy code
json
"{\"transcript\": \"user: Unknown message of type \"webchat:conversationStarted\" on channel \"unknown\": {\"conversationId\":\"conv_01K235MHTQ0CT1K636QJW058G0\",\"userId\":\"user_01K22XAKEPQNQTFRZMKP29ZTK4\"}\nbot: Welcome to Smith Corp's Shipping support. How can we help you today? \nbot: What is your tracking number?\nuser: 12\nbot: We were not able to determine which carrier your shipment is with. Please select which option best describes your issue, and a member of our team will follow up.\nbot: Please select an option\nuser: I want to add delivery instructions.\nbot: What are the delivery instructions you want to add?\nuser: deliver to me\nbot: Please let me know your name, email, and order number, and a member of the team will reach out.\nbot: What is your name?\nuser: NAME NAME\nbot: What is your email?\nuser: s@g.com\nbot: What is your order number?\nuser: 123\nbot: Thanks. A team member will email you shortly to assist.\n\"}"
}