Skip to main content

Get Message By WhatsApp Number

AutomatR.WhatsApp.Activities.GetMessageByWhatsAppNumber

The "Get Message By WhatsApp Number" activity in AutomatR is part of the WhatsApp activities package, allowing users to retrieve messages from a specified WhatsApp number. This activity enhances automation workflows by providing access to WhatsApp conversation history.

Properties

NameDescription
Input
WhatsApp NumberSpecifies the WhatsApp number for which messages need to be fetched. WhatsApp Number with country code, Example: 85264318721. Required argument.
Page SizeSpecifies the page size for retrieving messages. Optional argument.
Page NumberSpecifies the page number for retrieving messages. Optional argument.
Misc
Display NameProvides a customizable name for the activity displayed in the workflow. String variables containing the desired display name.
Optional
DelaySpecifies the amount of time (in seconds) to wait before executing the "Get Message By WhatsApp Number" activity. This can be useful for handling synchronization issues. Integer variables containing the delay duration. Example: If the amount of time is 1000 milliseconds or 1 sec, i.e., 1.
Output
ResponseReturns the JSON response containing the messages. Variables of type ResultGetMessageByNumber to store the operation result.

How to use:

  1. Drag and drop the "Get Message By WhatsApp Number" activity onto the workflow.
  2. Configure the properties by specifying the WhatsApp number for which messages should be fetched.
  3. Optionally, configure the delay and customize the display name.
  4. Execute the workflow to retrieve messages from the specified WhatsApp number.

Example: Consider an example where the "Get Message By WhatsApp Number" activity is used to retrieve messages from a WhatsApp number "85264318721":

Get Message By WhatsApp Number:
Display Name: "Retrieve WhatsApp Messages"
WhatsApp Number: "85264318721"
Page Size: 10
Page Number: 1
Response: whatsappMessages

In this example, the activity retrieves the first 10 messages from the WhatsApp number "85264318721" and stores the result in the whatsappMessages variable for further handling in the workflow.