Ask user

Whatsapp Business Cloud API

Action

Send a message, an image/video/document or both to a specific chat and wait for the user's response before continuing.

  • The following tags are currently supported in the messages: b, strong , i, em, u, ins, s, strike, del, a, code, pre.
  • You can include URL Buttons and Callback Buttons in posts.


Information provided

When executed, this operation delivers the following data, which can be used in the same automatic task.

  • Tags

  • From Phone number {{from_number}}

    Phone number of the user who responded.
    For example: 34691000000

  • From User Name {{from_name}}

    Name of the user who responded.
    For example: Mark

  • Message Id {{message_id}}

    Id of the message that WhatsApp has assigned to the user's response.
    For example: wamid.HBgLMzQ2BMENBNzI3NAA=

  • Message {{message_text}}

    Message contained in the user's response.
    For example: Hi!

  • Media Id {{media_id}}

    File id if the user has responded by attaching one.
    For example: 658628455733548

  • Selected Button/Option Id {{button_id}}

    Id of the selected button if the user has responded by clicking one, or Id of the selected list if the user has respond by selecting one from a list.
    For example: button-1

  • Selected Button/Option Title {{button_title}}

    Title of the selected button if the user responded by clicking one, or Title of the selected list if the user has respond by selecting one from a list.
    For example: Button 1


Common Errors


Error (#131009) Parameter value is not valid. Button title length invalid. Min length: 1, Max length: 20

WhatsApp imposes restrictions on the length of button titles in their messages. These restrictions specify that button titles must have a minimum length of 1 character and a maximum length of 20 characters.

You should edit the automated task and shorten the button titles that exceed the 20-character limit.

Error The parameter to is required.

The phone number to which the bot should send the message has not been specified.

Edit the automated task and enter the 'Recipient's phone number' field the number to which the message should be sent.

Error (#131009) Parameter value is not valid. Markdown is not allowed for button title

WhatsApp imposes restrictions on the characters you can use in button titles.

Edit your automated task and ensure that you are using characters allowed by WhatsApp in the titles of your buttons.

Write us

By email or by Telegram.
Monday to Friday from 7 a.m. to 1 p.m. (Spain).

Let's talk

Choose day and time.
We share the screen and answer all your questions.