Trigger icon

Trigger

Trigger para receber webhooks da API da Poli

Trigger

AI-generated

Overview

This node acts as a trigger to receive webhooks from the Poli API. It is designed to monitor specific events related to messaging and contacts within the Poli platform, such as message reception, message status updates, contact updates, and contact creation. When an event occurs, the node captures the webhook data and outputs it for further workflow processing. This node is useful for automating workflows based on real-time events from the Poli API, such as updating CRM systems, sending notifications, or logging events.

Use Case Examples

  1. Automatically trigger a workflow when a new message is received in Poli.
  2. Monitor contact updates in Poli and sync changes to an external database.
  3. Create alerts or notifications when message statuses change in Poli.

Properties

Name Meaning
App Name The name of the app to be created or used in Poli for webhook registration.
Eventos The events to monitor from Poli, such as message received, message status updated, contact updated, and contact created.
Webhook Path Custom path for the webhook URL endpoint.
Page Page number for listing applications in Poli, used when searching or creating the app.

Output

JSON

  • event - The type of event received from the Poli webhook.
  • timestamp - The ISO timestamp when the event was received.
  • payload - The payload data from the webhook, excluding internal metadata fields.

Dependencies

  • Requires Poli API credentials for authentication and API access.

Troubleshooting

  • Ensure the 'App Name' parameter is provided and is a valid string, as it is required for app creation and webhook registration.
  • Verify that the 'Webhook Path' is a valid string and unique to avoid conflicts.
  • Make sure at least one event is selected in the 'Eventos' property to monitor relevant Poli events.
  • Check that the Poli API credentials are correctly configured and have the necessary permissions.
  • Common errors include missing parameters or API request failures during webhook activation or deactivation, which can be resolved by verifying input parameters and API connectivity.

Discussion