Webhook replays "Accepted" (Reopen Topic)

I have Twilio Messaging Service for WhatsApp that any time a message is recived is sent to a Make webhook.
The problem is that every message gets an automatic reply, “Accepted”.

I’d like to make that stop, I have been following this thread (Webhook replies "Accepted"?) but the solution is not working for me any idea ?

Hello @Rafael_Sanchez,

Shouldn’t you use Status code 200 for this instead of 300?
Whatever you put in the body will be replied to the texter, unless it’s blank, in which case they shouldn’t receive any reply, not even the “Accepted” message.
Also, the scenario needs to be turned on or you need to hit Run Once before sending the text/before Twilio fires the Webhook.

1 Like

Helo @Donald_Mitchell I did it and still same result.

Try {{emptystring}} in the body for a blank response.

Screenshot_2024-04-28_230439

1 Like

Helo @samliew

@samliew same result:

I’m almost certain this is the answer. You might need to save your scenario and switch off/on your scenario schedule.

Also, I did not need to set any custom headers.

You can test this in a new scenario:

Module Export

You can copy and paste this module export into your scenario. This will paste the modules shown in my screenshots above.

  1. Copy the JSON code below by clicking the copy button when you mouseover the top-right of the code block
    Screenshot_2024-01-17_200117

  2. Enter your scenario editor. Press ESC to close any dialogs. Press CTRLV (paste keyboard shortcut for Windows) to paste directly in the canvas.

  3. Click on each imported module and save it for validation. You may be prompted to remap some variables and connections.

JSON

{
    "subflows": [
        {
            "flow": [
                {
                    "id": 147,
                    "module": "gateway:CustomWebHook",
                    "version": 1,
                    "parameters": {
                        "hook": 512783,
                        "maxResults": 1
                    },
                    "mapper": {},
                    "metadata": {
                        "designer": {
                            "x": -832,
                            "y": -4015,
                            "messages": [
                                {
                                    "category": "link",
                                    "severity": "warning",
                                    "message": "A trigger must be the first module in a scenario."
                                }
                            ]
                        },
                        "restore": {
                            "parameters": {
                                "hook": {
                                    "label": "My temp webhook",
                                    "data": {
                                        "editable": "true"
                                    }
                                }
                            }
                        },
                        "parameters": [
                            {
                                "name": "hook",
                                "type": "hook:gateway-webhook",
                                "label": "Webhook",
                                "required": true
                            },
                            {
                                "name": "maxResults",
                                "type": "number",
                                "label": "Maximum number of results"
                            }
                        ]
                    }
                },
                {
                    "id": 148,
                    "module": "gateway:WebhookRespond",
                    "version": 1,
                    "parameters": {},
                    "mapper": {
                        "status": "200",
                        "body": "{{emptystring}}",
                        "headers": []
                    },
                    "metadata": {
                        "designer": {
                            "x": -582,
                            "y": -4015
                        },
                        "restore": {
                            "expect": {
                                "headers": {
                                    "mode": "chose"
                                }
                            }
                        },
                        "expect": [
                            {
                                "name": "status",
                                "type": "uinteger",
                                "label": "Status",
                                "validate": {
                                    "min": 100
                                },
                                "required": true
                            },
                            {
                                "name": "body",
                                "type": "any",
                                "label": "Body"
                            },
                            {
                                "name": "headers",
                                "type": "array",
                                "label": "Custom headers",
                                "validate": {
                                    "maxItems": 16
                                },
                                "spec": [
                                    {
                                        "name": "key",
                                        "label": "Key",
                                        "type": "text",
                                        "required": true,
                                        "validate": {
                                            "max": 256
                                        }
                                    },
                                    {
                                        "name": "value",
                                        "label": "Value",
                                        "type": "text",
                                        "required": true,
                                        "validate": {
                                            "max": 4096
                                        }
                                    }
                                ]
                            }
                        ],
                        "advanced": true
                    }
                }
            ]
        }
    ],
    "metadata": {
        "version": 1
    }
}
1 Like

I use Twilio and it worked with Response code 200 and nothing in the Body or Headers. Like @samliew suggested, try removing the headers as well.

2 Likes

I did as you said @samliew it seems to bo working by not sending back “Accepted” however it should send the body of the response webhook but that is not happening.

Thank you, everyone. Creating a scenario from scratch seemed to have solved the issue. Though I’m not entirely certain that was the cause, for now, it’s resolved.

I sincerely appreciate your assistance and for dedicating your time to be with me on a Sunday. I will be sure to pay it forward by helping others in the same way.

Thank you.
@Donald_Mitchell
@samliew

3 Likes