Use this core n8n workflow to integrate Retell AI voice agents with custom functions. Handle incoming webhooks, execute complex logic, and return dynamic, real-time responses directly to your AI agent.
Download this n8n workflow template and start using it instantly.
Developers leveraging Retell AI to build robust voice applications.
Automation specialists seeking flexible n8n templates for real-time AI tool execution.
Users needing to connect AI voice agents to external systems like CRMs, databases, or payment gateways via a custom n8n node.
Organizations looking to centralize complex conversational logic within an n8n workflow.
This powerful n8n workflow serves as the backend endpoint for Retell AI's Custom Function feature. When a Retell Voice Agent reaches a point in the conversation that requires an external action (like checking inventory or confirming a booking), it sends a POST webhook to this n8n trigger. This allows for complex, real-world interactions to happen mid-conversation, dramatically extending the capabilities of the agent. This specific n8n template is designed for immediate deployment, providing a basic confirmation response, which users are encouraged to replace with advanced logic, potentially incorporating other n8n node integrations like database operations or LLM calls. Using this n8n workflow ensures reliable, scalable custom function handling.
The process begins when a user interaction within the Retell Voice Agent conversation flow activates a Custom Function. This function is configured to hit the entry point of this n8n workflow, which is the Webhook n8n node.
guest-name, room-type-booked, and total-cost).[Replace me!] Set response n8n node. This is the designated area where the user must insert custom logic. This logic can involve complex steps—such as calling an external API, running a custom code script, or interacting with a database via another n8n node—before generating a result.Set n8n node creates a static success message ("Your booking has been confirmed!") which simulates a successful external action.Respond to Webhook n8n node, which immediately sends the final JSON response back to the Retell AI agent, allowing the voice conversation to continue based on the outcome of the external function called by this n8n workflow.To start using this n8n workflow, follow these steps:
/hotel-retell-template.https://your-instance.app.n8n.cloud/webhook/hotel-retell-template).[Replace me!] Set response n8n node. Replace the static Set node with your desired sequence of n8n nodes to handle external API calls, data validation, or AI-powered operations relevant to your voice agent’s needs. This ensures your n8n template is ready for production.This compact but powerful n8n workflow relies on three core n8n node types:
Webhook (n8n Trigger):
Function: Acts as the primary n8n trigger, listening for POST requests from the Retell Custom Function.
Key Configuration: Path is set to hotel-retell-template. It captures the incoming request body which contains all conversation and function arguments (like booking details).
[Replace me!] Set response (Set n8n Node):
Function: Currently, this n8n node assigns a static string value (response: Your booking has been confirmed!) to simulate the successful completion of a backend task. This node is intended to be the entry point for custom user logic, such as using an OpenAI n8n node or calling a CRM API.
Key Configuration: Sets a single string assignment named response.
Respond to Webhook (n8n Node):
Function: Sends the output generated by the preceding custom logic back to the waiting Retell Voice Agent in real-time. This is crucial for completing the custom function call within the voice conversation loop.
* Key Configuration: Sends the response payload to fulfill the incoming webhook request initiated by the n8n trigger.
Automatically send Pipedrive deal conversion data to GA4 and Google Ads using the Measurement Protocol. Leverage this n8n workflow for accurate revenue tracking.

Deploy the Color Name API as a custom tool for your AI agents using this specialized n8n workflow template. Leverage the n8n MCP trigger for seamless API integration.

Use this powerful n8n workflow to expose 18 Buffer API endpoints as callable tools for AI agents via the n8n MCP trigger. Achieve seamless, AI-driven social media automation.

Stop inbox clutter! Implement this efficient n8n workflow to gather daily Google Form submissions, group them by category, and send a single, consolidated summary email via Gmail every afternoon.

Use this robust n8n workflow to automatically consolidate data from Google Sheets, PostgreSQL, MongoDB, MS SQL, and Google Analytics into a single, standardized Google Sheet report for powerful business intelligence.

Automate construction blueprint data extraction using the VLM Run n8n node and Google Drive trigger. Log structured metadata like revisions, scales, and project details directly into Google Sheets. Leverage this n8n workflow for compliance and reporting.

We are a product studio that helps organizations leverage no-code and generative AI to automate internal processes and launch new digital products. LinkedIn: https://www.linkedin.com/in/baptistej/







































