How to Call Make.com Workflows Through Tools
Make.com is a powerful and easy-to-use workflow automation tool that can be used to create various automated tasks. ConsoleX supports calling Make.com workflows through tools to extend the capabilities of large models, enabling them to complete more complex tasks.
Basic Process
- Create a workflow in Make.com, set up workflow trigger conditions through the Webhook trigger module, and set up the returned data structure through the Webhook response module.
- Add a tool with interface type Make.com in ConsoleX, and set up the tool's description, Webhook URL, and required API Key for calling.
- When initiating a conversation, add the created tool to the conversation for the large model to autonomously call and return results.
Detailed Steps
Configure workflow calling method and parameters in Make.com
Workflows created in Make.com that need to be called by ConsoleX require adding a Webhook trigger module and then creating a Webhook URL, which will serve as the tool's function interface URL in ConsoleX.
Configure workflow auth verification in Make.com (optional)
To set up auth token verification for workflows in Make.com, you need to first add a filter on the connection of the Webhook trigger module in the Make.com workflow and set up verification rules in its condition. As shown below:
{{get(map(4.`__IMTHEADERS__`; "value"; "name"; "authorization"); 1)}}
Configure workflow return content in Make.com
Workflows created in Make.com need to end with a Webhook response module, and the return content of the Webhook response module needs to be set to JSON format and include a data field. The object content in the data field will be used as the return result of the tool in ConsoleX. Here's an example:
{
"status": "success",
"data": {
"attr": "value"
}
}
Create a tool with interface type Make.com in ConsoleX
When creating a tool, first you need to input the tool's JSON Schema description to be consistent with the input parameters received by the workflow. The specific format of the description follows the standard OpenAI tool description format. You can refer to examples or use AI assistance to generate.
Next, you need to enable tool calling. The tool's calling method needs to select either GET or POST method, depending on how the Webhook Trigger module in the Make.com workflow receives parameters. The tool's interface type needs to be set to Make.com.
The tool's function interface URL needs to be consistent with the Webhook URL created in Make.com.
If auth token verification is set up in the Make.com workflow, you need to input the auth token into the tool's API Key.
Select one of the tool's reply methods according to the situation, then click Save. The tool corresponding to the Make.com workflow is created.
Example Workflow
The following is a Make.com example workflow for weather forecasting. You can right-click to save it locally and then import it into Make.com for reference.
Notes
- The tool's JSON Schema description needs to correspond to the input parameters in the Make.com workflow, otherwise the large model cannot correctly call the Make.com workflow. You can view the debugging information of workflow calls in Make.com's run history.
- Workflows in Make.com need to be published before they can be repeatedly called multiple times. In an unpublished state, you can debug workflows through single calls or determine Redetermine data structure.