Use n8n to bring data from any API to your AI. This workflow uses the Chat Trigger to provide the chat interface, and the Custom n8n Workflow Tool to call a second workflow that calls the API.
The second workflow uses AI functionality to refine the API request based on the user's query. It then makes an API call, and returns the response to the main workflow.
This workflow is used in Advanced AI examples | Call an API to fetch data in the documentation.
To use this workflow:
Requires n8n 1.28.0 or above
Implement complex processes faster with n8n