AACFlow

Green API

Send WhatsApp messages, files, and interactive buttons via Green API (Russian WhatsApp BSP)

gr

Green API is a Russian WhatsApp Business Solution Provider offering a REST API for sending messages, files, and interactive buttons. It supports individual WhatsApp number instances and is widely used in Russian e-commerce and customer service automation.

With the Green API integration in AACFlow, you can:

  • Send messages: Deliver text messages to any WhatsApp number
  • Send files: Share documents, images, and other files with recipients
  • Send buttons: Send interactive button messages for guided conversations
  • Get notifications: Poll incoming webhook notifications from the instance
  • Check instance state: Verify the authorization and connection status of your WhatsApp instance

This integration enables automated WhatsApp messaging workflows for customer communications and notifications.

Usage Instructions

Integrate Green API into the workflow. Requires an Instance ID and API Token Instance from your Green API account at app.green-api.com.

Tools

green_api_send_message

Send a text message via WhatsApp

Input

ParameterTypeRequiredDescription
idInstancestringYesGreen API instance ID
apiTokenInstancestringYesGreen API instance token
chatIdstringYesRecipient chat ID (e.g. 79001234567@c.us)
messagestringYesText message to send

Output

ParameterTypeDescription
idMessagestringID of the sent message
successbooleanWhether the message was sent

green_api_send_file

Send a file via WhatsApp

Input

ParameterTypeRequiredDescription
idInstancestringYesGreen API instance ID
apiTokenInstancestringYesGreen API instance token
chatIdstringYesRecipient chat ID
urlFilestringYesURL of the file to send
fileNamestringYesFile name including extension
captionstringNoFile caption

Output

ParameterTypeDescription
idMessagestringID of the sent message
successbooleanWhether the file was sent

green_api_send_buttons

Send an interactive buttons message

Input

ParameterTypeRequiredDescription
idInstancestringYesGreen API instance ID
apiTokenInstancestringYesGreen API instance token
chatIdstringYesRecipient chat ID
messagestringYesButton message text
footerstringNoFooter text
buttonsarrayYesArray of button objects

Output

ParameterTypeDescription
idMessagestringID of the sent message
successbooleanWhether the message was sent

green_api_get_notifications

Poll incoming notifications from the instance

Input

ParameterTypeRequiredDescription
idInstancestringYesGreen API instance ID
apiTokenInstancestringYesGreen API instance token
receiveTimeoutnumberNoLong poll timeout in seconds

Output

ParameterTypeDescription
notificationsarrayArray of notification objects
receiptIdnumberReceipt ID for deletion

green_api_get_state_instance

Check the authorization state of the instance

Input

ParameterTypeRequiredDescription
idInstancestringYesGreen API instance ID
apiTokenInstancestringYesGreen API instance token

Output

ParameterTypeDescription
stateInstancestringInstance state (authorized, notAuthorized, blocked, etc.)

On this page

Start building today
Trusted by over 100,000 builders.
The SaaS platform to build AI agents and run your agentic workforce.
Get started