Actions64
- Instance Actions
- Message Actions
- Group Actions
- Chat Actions
- Profile Actions
- Event Actions
- Integration Actions
Event → RabbitMQ
AI-generatedSummary
Configure or retrieve RabbitMQ integration for an Aysali API instance.
Inputs
- instanceName (required) — The name of the Aysali instance that will send or receive RabbitMQ messages.
- resourceForRabbitMQ (required) — Choose whether to set or fetch RabbitMQ settings. Options: setRabbitMQ, findRabbitMQ.
- enabled — Whether to enable RabbitMQ integration. Only applies when resourceForRabbitMQ is setRabbitMQ. Defaults to true.
- rabbitMQEvents — List of event types to forward to RabbitMQ (e.g., SEND_MESSAGE, MESSAGES_UPSERT). Only applies when resourceForRabbitMQ is setRabbitMQ. Defaults to an empty list.
Output shape
object
Returns the API response: a success confirmation when setting RabbitMQ, or the current RabbitMQ configuration (enabled state and selected events) when fetching.
Examples
Example 1: Enable RabbitMQ for SEND_MESSAGE and MESSAGES_UPSERT events on instance 'myInstance'
Set instanceName='myInstance', resourceForRabbitMQ='setRabbitMQ', enabled=true, rabbitMQEvents=['SEND_MESSAGE','MESSAGES_UPSERT']
Example 2: Fetch current RabbitMQ settings for instance 'myInstance'
Set instanceName='myInstance', resourceForRabbitMQ='findRabbitMQ' (enabled and rabbitMQEvents are ignored)