WhatsApp - ChatGPT Scenario error

Hello, I’m trying to set up the following scenario:

  1. Module: WhatsApp Business Cloud (Watch Events)
    → Trigger: a user sends us a message via WhatsApp Business.

  2. Module: OpenAI (Create a Completion)
    → It takes the incoming message and generates a response.

  3. Module: WhatsApp Business Cloud (Send a Message)
    → It should send the AI-generated response back to the user.

The scenario runs correctly up until the last module (WhatsApp “Send a Message”). At this point, I receive the following error:

BundleValidationError
Validation failed for 1 parameter(s).
Missing value of required parameter 'to'.
Origin: Make

I’ve tried mapping different parameters and testing multiple options for the “to” field, but nothing works.

Has anyone experienced this issue or can guide me on how to correctly map the recipient’s number?

Thanks a lot for your help!

Hi @Fla359

The to in Send a message should be the from from the message received in Watch events.

@damato

Hi, I’ve tried multiple parameters, currenly set at {{1.contacts.wa_id}}
But it doesn’t seem to work.

Here are the settings:

The Watch events module is returning an array of results, not a single object.

You need to iterate the array and use each message’s properties.

Hi, I tried, but now when running the scenario it stops at the Iterator (omitting chatgpt and last whatsapp module. How could I solve this?

Welcome to the Make community!

Please provide the output bundles of each of the relevant modules by running the scenario (you can also get this without re-running your scenario from the History tab).

Click on the white speech bubbles on the top-right of each module and select “Download input/output bundles”.

A. Upload as a Text File

Save each bundle contents in a plain text editor (without formatting) as a bundle.txt file.

You can upload the file here by clicking on this button:

B. Insert as Formatted Code Block

If you are unable to upload files on this forum, alternatively you can paste the formatted bundles.
Here are some ways to provide text content in a way that it won’t be modified by the forum.

  • Method 1: Type code fence manually
    Add three backticks ``` in a separate line before and after the content, like this,

    ```
    text goes here
    ```
    
  • Method 2: Highlight and click the “preformatted text” button in the editor

  • Method 3: Upload your file and share the public link
    (this method is only recommended for large files exceeding the forum upload limit)

Providing the input/output bundles will allow others to replicate what is going on in the scenario, especially if there are complex data structures (nested arrays and collections) or if external services are involved, and help you with mapping the raw property names from collections.

This will allow others to better assist you. Thanks!

@samliew