I want to pass a custom message when using server ...
# support
y
The documentation says that if I pass a 'error' key in the response it will be spoken to the customer, but when I did try this. I didn't work. The message I heard on the call was the default one ("Couldn't get assistant...") Can you help me with this? The call id for reference is:
b3e91679-4fc9-4428-ae67-a02125a5bd04
@User Please look into this
@User
y
Hey @Shubham Bajaj, so I just double checked this, and it turns out that there is no call for this particular id, but I got this id from the payload of the webhook "Webhook Logs > Assistant Request"
y
@Shubham Bajaj Here you go! When I want to connect the Assistant to the call, I send:
{'assistantId': campaign.assistant.id}
This one is working fine When I don't want to connect the Assistant to the call, I send:
{'error': 'Campaign is not active'}
This one is not working as expected Since, the documentation says that this will be spoken to the customer! I hope this helps you understand the issue I'm facing https://cdn.discordapp.com/attachments/1313042438654394408/1313561509510647891/Screenshot_2024-12-03_at_11.12.24_PM.png?ex=675094fc&is=674f437c&hm=f9e6162dead9483bb1a157db9c7ea47de6b40b6961d42fe0e374ea570d1b5c18& https://cdn.discordapp.com/attachments/1313042438654394408/1313561509951176704/Screenshot_2024-12-03_at_11.12.09_PM.png?ex=675094fc&is=674f437c&hm=bdfb9f565055d0558218dfe516796eb3204b6a79d63eb03353990a9b25f90ec2&
Hey @Shubham Bajaj Thanks for replying, now this seems to be working