AACFlow

Green API

Отправка WhatsApp-сообщений, файлов и интерактивных кнопок через Green API (российский WhatsApp BSP)

gr

Green API — это русское решение WhatsApp Business Business Solution Provider offering a REST API для sending messages, files, и interactive buttons. It supports individual WhatsApp number instances и — это widely used in Russian e-commerce и customer service automation.

С помощью Green API интеграции в AACFlow можно:

  • Отправить messages: Deliver text messages to any WhatsApp number
  • Отправить files: Share documents, images, и other files с recipients
  • Отправить buttons: Отправить interactive button messages для guided conversations
  • Получить notifications: Poll incoming webhook notifications from the instance
  • Проверить instance state: Verify the authorization и connection status of your WhatsApp instance

Эта интеграция позволяет automated WhatsApp messaging workflows для customer communications и notifications.

Инструкции по использованию

Интегрируйте Green API в рабочий процесс. Требуетсяn Instance ID и API Token Instance from your Green API account at app.green-api.com.

Инструменты

green_api_send_message

Отправить a text message via WhatsApp

Входные параметры

ПараметрТипОбязательныйОписание
idInstancestringДаGreen API instance ID
apiTokenInstancestringДаGreen API instance token
chatIdstringДаRecipient chat ID (e.g. 79001234567@c.us)
messagestringДаText message to send

Выходные данные

ПараметрТипОписание
idMessagestringID of the sent message
successbooleanПроизошла ли message was sent

green_api_send_file

Отправить a file via WhatsApp

Входные параметры

ПараметрТипОбязательныйОписание
idInstancestringДаGreen API instance ID
apiTokenInstancestringДаGreen API instance token
chatIdstringДаRecipient chat ID
urlFilestringДаURL of the file to send
fileNamestringДаFile name including extension
captionstringНетFile caption

Выходные данные

ПараметрТипОписание
idMessagestringID of the sent message
successbooleanПроизошла ли file was sent

green_api_send_buttons

Отправить an interactive buttons message

Входные параметры

ПараметрТипОбязательныйОписание
idInstancestringДаGreen API instance ID
apiTokenInstancestringДаGreen API instance token
chatIdstringДаRecipient chat ID
messagestringДаButton message text
footerstringНетFooter text
buttonsarrayДаМассив button objects

Выходные данные

ПараметрТипОписание
idMessagestringID of the sent message
successbooleanПроизошла ли message was sent

green_api_get_notifications

Poll incoming notifications from the instance

Входные параметры

ПараметрТипОбязательныйОписание
idInstancestringДаGreen API instance ID
apiTokenInstancestringДаGreen API instance token
receiveTimeoutnumberНетLong poll timeout in seconds

Выходные данные

ПараметрТипОписание
notificationsarrayМассив notification objects
receiptIdnumberReceipt ID for deletion

green_api_get_state_instance

Проверить состояние авторизации of the instance

Входные параметры

ПараметрТипОбязательныйОписание
idInstancestringДаGreen API instance ID
apiTokenInstancestringДаGreen API instance token

Выходные данные

ПараметрТипОписание
stateInstancestringInstance state (authorized, notAuthorized, blocked, etc.)

Ссылки

On this page

Начните создавать сегодня
Нам доверяют более 100 000 разработчиков.
SaaS-платформа для создания AI-агентов и управления агентным workforce.
Начать