Calling Webhook
Learn how to call a webhook on Make
Last updated
Learn how to call a webhook on Make
Last updated
This tutorial walks you through creating a custom tool in FlowiseAI that calls a webhook endpoint, passing the necessary parameters in the request body. We will use Make.com to set up a webhook workflow that sends messages to a Discord channel.
Sign up or log in to Make.com.
Create a new workflow containing a Webhook module and a Discord module, as shown below:
From the Webhook module, copy the webhook URL:
In the Discord module, configure it to pass the message
from the webhook body as the message sent to the Discord channel:
Click Run Once to start listening for incoming requests.
Send a test POST request with the following JSON body:
If successful, you will see the message appear in your Discord channel:
Congratulations! You have successfully set up a webhook workflow that sends messages to Discord. 🎉
Next, we will create a custom tool in FlowiseAI to send webhook requests.
Open the FlowiseAI dashboard.
Click Tools, then select Create.
Fill in the following fields:
Tool Name
make_webhook
(must be in snake_case)
Tool Description
Useful when you need to send messages to Discord
Tool Icon Src
Define the Input Schema:
Enter the following JavaScript function:
Click Add to save your custom tool.
Create a new canvas and add the following nodes:
Buffer Memory
ChatOpenAI
Custom Tool (select make_webhook
)
OpenAI Function Agent
Connect them as shown:
Save the chatflow and start testing it.
Try asking the chatbot a question like:
"How to cook an egg?"
Then, request the agent to send this information to Discord:
You should see the message appear in your Discord channel:
If you want to test webhooks without Make.com, consider using:
Beeceptor – Quickly set up a mock API endpoint.
Webhook.site – Inspect and debug HTTP requests in real-time.
Pipedream RequestBin – Capture and analyze incoming webhooks.
Watch a step-by-step guide on using webhooks with Flowise custom tools:
Learn how to connect Flowise to Google Sheets using webhooks:
Learn how to connect Flowise to Microsoft Excel using webhooks:
By following this guide, you can trigger webhook workflows dynamically and extend automation to various services like Gmail, Google Sheets, and more.