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
Name | Description |
---|---|
Input | |
WhatsApp Number | Specifies the WhatsApp number for which messages need to be fetched. WhatsApp Number with country code, Example: 85264318721. Required argument. |
Page Size | Specifies the page size for retrieving messages. Optional argument. |
Page Number | Specifies the page number for retrieving messages. Optional argument. |
Misc | |
Display Name | Provides a customizable name for the activity displayed in the workflow. String variables containing the desired display name. |
Optional | |
Delay | Specifies 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 | |
Response | Returns the JSON response containing the messages. Variables of type ResultGetMessageByNumber to store the operation result. |
How to use:
- Drag and drop the "Get Message By WhatsApp Number" activity onto the workflow.
- Configure the properties by specifying the WhatsApp number for which messages should be fetched.
- Optionally, configure the delay and customize the display name.
- 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.