WhatsApp Component is designed to connect with WhatsApp using Graph API
The current release of component tested with API v18.0
.
Before building any integration flow please make sure you have prepared what WhatsApp requires for API communications:
To generate a System User access token after creating a system user:
Select any permissions the app needs to function properly and generate the token.
60 days
or Never expires
. It’s on the user to refresh the token in the credentials if they choose to it to expire in 60 days.Now you can create new credentials for the component:
v18.0
by default) - Version of API you are going to use, look at Facebook changelog to find out what changes have been madeIf you plan to use the Webhook
trigger, you may also need to complete the following fields:
App Settings
> Basic
section.Simply send a message.
None
Please refer to the Input Schema file for the full list of metadata fields. Input message fields depend on the type of the message (one of ‘contacts’, ‘location’, ‘text’, ‘template’). E.g. in case type: “template” is specified, you must ensure the template is properly prepared and verified according to the Meta’s requirements. Please refer to the official guides on how to accomplish it.
An example of the input message with the template available for testing purposes:
{
"to": "+1234567890",
"type": "template",
"template": {
"name": "hello_world",
"language": {
"code": "en_US"
}
}
}
This trigger is used to receive events from Facebook.
To utilize it, you need to manually create a webhook subscription in your Facebook application:
Webhook
trigger as the first step. You might also need to add additional Credentials.Run now
button. There you will see the webhook URL, which will look like https://in.elastic.io/hook/6690dc400f98620012465ffd
. Copy this URL.Webhooks
section. Open it.WhatsApp Business Account
and click Subscribe to this object
.Verify token
. This should match the component credentials Verify Token
, then click Verify and save
.App Mode
to Live mode
. For more information, visit this page.None
None
Dynamically created event from facebook
Click here to learn more about the elastic.io iPaaS