Solved error RuntimeError [400] [131008] in make.com for WhatsApp Flow

Before diving into the details on how to resolve the RuntimeError [400] [131008] in make.com, it is essential to understand what WhatsApp Flow and make.com are, and how they integrate for message automation.

What is WhatsApp Flow?

WhatsApp Flow allows you to automate the sending of forms such as surveys via WhatsApp using the WhatsApp Business API. This tool is ideal for businesses that want to enhance their communication with customers in an automated way without leaving WhatsApp. If you want to learn more about how WhatsApp Flow works, I offer a free kit to test the WhatsApp API, available at this link: WhatsApp API Test Kit.

make.com is an automation platform that integrates with multiple services, including the WhatsApp API, to automate tasks like message sending. Although it is a powerful tool, it currently does not natively support the sending of WhatsApp Flows, which can result in errors such as:

(#131008) Required parameter is missing
Please specify a flow button component within template['components']

when trying to send a WhatsApp API template from make.com.

How to Solve the RuntimeError [400] [131008]?

The RuntimeError [400] [131008] in make.com occurs due to the lack of native support for sending WhatsApp Flows. Below, I will show you how I solved this issue in my project by manually integrating the WhatsApp Business API into make.com.

To solve this problem, we will not use the native WhatsApp Business API integration in make.com. Instead, we will manually configure it by following these steps:

Preparation: Prerequisites

Before starting the configuration, make sure you have the following:

Configuration in make.com

Step 1: Scenario Setup

In make.com, create or select an existing scenario. In my case, I already had a scenario configured with a Webhook that receives a JSON and sends the information to Google Spreadsheets as shown in the following image. I will use this setup as the basis for testing.

Step 2: Create a “HTTP Make a Request” Module

2. Fill in the fields as follows:

Step 3: Configure the Request Content Body

Now comes a crucial part. In “Request content”, enter the following JSON. Note that this is an example; you need to fill it with your data:

{
  "messaging_product": "whatsapp",
  "recipient_type": "individual",
  "to": "{{Numero_Whatsapp_destino}}", // Recipient's phone number in E.164 format (e.g., 525555555555)
  "type": "template",
  "template": {
    "name": "{{Nombre_template}}", // Name of your WhatsApp Business template
    "language": {
      "code": "{{Codigo_idioma_pais}}" // Language code of the template, e.g., "es_MX"
    },
    "components": [
      {
        "type": "button",
        "sub_type": "flow",
        "index": "0",
        "parameters": [
          {
            "type": "action",
            "action": {
              "flow_token": "unused",
              "flow_action_data": {
                "flow_id": "{{ID_Del_Template_Whatsapp}}", // ID of the WhatsApp form
                "flow_action": "NAVIGATE",
                "navigate_screen": "SURVEY"
              }
            }
          }
        ]
      }
    ]
  }
}


Do not close or save anything yet; let’s proceed to the next step.

Step 4: Example of Correct Configuration

Below is an example of what a correctly configured Request content should look like:

{
  "messaging_product": "whatsapp",
  "recipient_type": "individual",
  "to": "525555555555",
  "type": "template",
  "template": {
    "name": "encuesta_loyal_cliente_rating",
    "language": {
      "code": "es_MX"
    },
    "components": [
      {
        "type": "button",
        "sub_type": "flow",
        "index": "0",
        "parameters": [
          {
            "type": "action",
            "action": {
              "flow_token": "unused",
              "flow_action_data": {
                "flow_id": "130698640948414",
                "flow_action": "NAVIGATE",
                "navigate_screen": "SURVEY"
              }
            }
          }
        ]
      }
    ]
  }
}

Step 5: Testing and Verification

Once you have configured everything, it is time to run a test to ensure that the WhatsApp Flow sends correctly without any issues. But before anything else, don’t forget to click OK and save your scenario.

Step 6: Execute the Test

Run a test to check that the flow works correctly. Here’s an example of how it should look:

https://danielamoros.com/wp-content/uploads/2024/08/2024-08-24-13-58-44.mkv

Conclusion: Optimize Your WhatsApp Flow Integration in make.com

By following this step-by-step guide, you should be able to resolve the RuntimeError [400] [131008] and successfully integrate WhatsApp Flows in make.com without any problems. Remember, the key lies in the manual configuration of the WhatsApp API.

Buy Me a Coffee!

I hope this tutorial was helpful in effectively integrating and sending WhatsApp Flows in make.com. If it helped clear up your doubts or made your job easier, consider buying me a coffee! Your support helps me continue to create quality content. If you want to learn more about marketing, subscribe.

Buy me a coffee ☕ via PayPal

Salir de la versión móvil