Whatsapp

Learn how to use Whatsapp with Composio

Overview

Enum

WHATSAPP

Description

Enables interaction with customers through the WhatsApp Business API for messaging and automation.

Authentication Details

base_url
stringDefaults to https://graph.facebook.com/v22.0
auth_token
stringRequired
phone_number_id
stringRequired

Actions

Send contacts whatsapp number. note: the message will be delivered to the recipient only if they have initiated a conversation first.

Action Parameters

to_number
stringRequired
contacts
arrayRequired

Action Response

data
object
successful
boolean
error

Send a template message to a whatsapp number.

Action Parameters

to_number
stringRequired
template_name
stringRequired
language_code
stringDefaults to en_US

Action Response

data
object
successful
boolean
error

Send a text message to a whatsapp number. note: the message will reflect on the recipient’s phone number only if they have texted first.

Action Parameters

to_number
stringRequired
text
stringRequired
preview_url
boolean
message_id
string

Action Response

data
object
successful
boolean
error

Send a media message to a whatsapp number. note: the media will be delivered to the recipient only if they have texted first.

Action Parameters

media_type
stringRequired
to_number
stringRequired
link
stringRequired
caption
string

Action Response

data
object
successful
boolean
error

Send a location message to a whatsapp number. note: the location will be shared with the recipient only if they have texted first.

Action Parameters

to_number
stringRequired
latitude
stringRequired
longitude
stringRequired
name
stringRequired
address
stringRequired

Action Response

data
object
successful
boolean
error