Unable to send message with quick reply buttons

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?

@kedar,
Welcome to the community!

Let me check with the product team and get back to you at the earliest

Thanks

@Santhosh Any update on this?

@Santhosh Hi Santosh. Is this going to be possible?

@kedar
Sorry for the delay in responding :frowning:
I am still waiting for the product team to answer the query.
kindly give us some more time to get it done

Thanks

@kedar - Despite of multiple follow-ups, we haven’t heard from the :freshchat: 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

@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.

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.