kedar
(Kedar Deore)
May 27, 2022, 5:59am
1
I’m trying to follow
Example 6 - Message with a reply part that contains a collection of quick reply buttons
Found on the Freshchat developer API docs: Freshchat
Payload
{
"actor_type": "agent",
"actor_id": "xxx",
"message_type": "normal",
"message_parts": [
{
"text": {
"content": "Do you Agree?"
}
}
],
"reply_parts": [
{
"collection": {
"sub_parts": [
{
"quick_reply_button": {
"label": "Yes 👍"
}
},
{
"quick_reply_button": {
"label": "No"
}
}
]
}
}
]
}
Endpoint: https://api.in.freshchat.com/v2/conversations/xxx/messages/
I’m getting the following error
{
"code": 400,
"status": "INVALID_VALUE",
"message": "One helpText is required in replyParts along with QuickReplyButtons as part of collection"
}
What is the correct payload for this API?
Santhosh
(Santhosh Balusamy)
May 31, 2022, 7:06pm
2
@kedar ,
Welcome to the community!
Let me check with the product team and get back to you at the earliest
Thanks
kedar
(Kedar Deore)
June 3, 2022, 5:38am
3
@Santhosh Any update on this?
kedar
(Kedar Deore)
June 6, 2022, 12:16pm
4
@Santhosh Hi Santosh. Is this going to be possible?
Santhosh
(Santhosh Balusamy)
June 6, 2022, 12:52pm
5
@kedar
Sorry for the delay in responding
I am still waiting for the product team to answer the query.
kindly give us some more time to get it done
Thanks
Saif
(Saif Ali Shaik)
June 13, 2022, 5:28am
6
@kedar - Despite of multiple follow-ups, we haven’t heard from the team. One thing that I could suggest is to send an email to support@freshchat.com and quote this thread as needed.
Hi @kedar
The payload looks correct only and should work. Tried on my instance and it is working fine.
Regards,
Sachin
1 Like
kedar
(Kedar Deore)
June 17, 2022, 10:20am
8
@Sachin_Kumar Can you share the exact payload? I tried this again and it does not work . This is a WhatsApp conversation if that makes a difference.
Hi @kedar
Yes, WhatsApp will make a difference. Could you please provide the use case details?
Just for your reference, Freshchat has Outbound Messaging API for WhatsApp to send outbound messages. You will need a message template from Facebook to use this API to send messages on WhatsApp.
kedar
(Kedar Deore)
June 17, 2022, 11:12am
10
The Outbound messaging API is for initiating conversations outside WhatsApp’s 24-hr messaging window.
My use case is sending custom messages with quick reply buttons inside the messaging window. Is this possible to do via FreshChat?
Hi @kedar
You can send rich messages to WhatsApp from Bot flow. I am not aware of this if we could do this from Chat window or from APIs.