Webhook Block
The Webhook Block pauses the conversation until a specified webhook URL is triggered. This is particularly useful for executing long-running tasks that may take several minutes to complete, allowing seamless integration with external systems.
Webhook URLs
Test Environment
Use the following URLs for testing the webhook in different environments:
-
Web:
https://indite.io/api/v1/bots/{botId}/blocks/{blockId}/web/executeTestWebhook -
WhatsApp:
https://indite.io/api/v1/bots/{botId}/blocks/{blockId}/whatsapp/{phone}/executeTestWebhookReplace
{phone}with the phone number used for testing, formatted without spaces or the+prefix. For example, if the phone number is+33 601 020304, use33601020304.
Production Environment
In production, the webhook URL is consistent across all environments:
https://indite.io/api/v1/bots/{botId}/blocks/{blockId}/results/{resultId}/executeWebhookReplace {resultId} with the current user's Result ID. You can retrieve this ID within your bot flow using the Set Variable Block with the Result ID option.