n8n
Use n8n to trigger and connect YourGPT Chatbot with other services in your workflows.
💡 Connecting Your Chatbot with n8n
n8n is a powerful workflow automation tool that allows you to connect YourGPT with hundreds of other applications and services.
Before You Begin
Before starting the integration process, make sure you have:
- A YourGPT account: Sign up here
- An API Key generated from the YourGPT Dashboard > API Integration
- A Widget UID from your YourGPT bot
- Access to an n8n instance (local or cloud)
Integration Process
Install the Community Node
Open your local or cloud n8n instance.
Go to the Community Nodes panel from the sidebar.
Search for n8n-nodes-yourgpt.
Click Install.

Note
This will add the YourGPT node to your available workflow nodes.
Set Up API Authentication
Head over to YourGPT Dashboard.
Navigate to Integrations ⇒ API Integration ⇒ Generate API key.
Copy your API key for use in n8n.
Note
For detailed instructions on generating API keys, visit the API Integration Guide
Create a New Workflow
Go to Workflows > New Workflow.
Click on the + (plus) icon to add a new node.
Search for YourGPT, then click Add to Workflow.


Set Up Authentication
On the YourGPT node, click the credentials dropdown.
Select Create new credential.
Add your YourGPT API Key and save the credentials.

Create a Session
Choose Create Session as the action.
Provide the widget_uid in the action setup.
The widget_uid can be found in your YourGPT Chatbot Integrations.
Click Execute Node.

Note
You'll receive a response with a session_uid that you'll need for the next step.
Send a Message
Add another YourGPT node to your workflow.
Select Send Message as the action.
Configure the following parameters:
widget_uid: The same ID used in the Create Session actionmessage: The text content you want to sendsession_uid: Map this from the output of the Create Session action
Click Execute Node.

Test and Deploy
Test your workflow thoroughly to ensure all actions work correctly.
Once tested, you can activate the workflow for production use.
Consider adding error handling for robustness.
Use cases
Auto-draft email replies
When a new email arrives, let YourGPT draft a reply from your knowledge base and save it as a Gmail draft for you to review and send. This uses the Create Session and Send Message nodes.
Trigger on a new email
Add a Gmail Trigger node set to On message received, watching your inbox.
Open a session
Add the YourGPT → Create Session node with your widget_uid. It returns a session_uid.
Get a knowledge-grounded reply
Add the YourGPT → Send Message node. Map the email's subject and body into the message, and the session_uid from the previous step. YourGPT replies using your trained knowledge.
Save the draft reply
Add a Gmail node to create a draft reply, putting the Send Message output in the body. Review and send it from Gmail.
Sync leads and conversations to your CRM
Persist every captured lead or conversation into your CRM or database — with the custom mapping, deduplication, and error handling that n8n's code nodes make easy.
Create a Webhook in n8n
Add a Webhook node (POST) as the trigger and copy the URL.
Send data from YourGPT
Use your chatbot's Lead Generation webhook, or a Studio API Call node, to POST the lead or conversation fields to the n8n URL.
Transform and store
Add a Code node to format or deduplicate the data, then a CRM (HubSpot, Salesforce) or database node to upsert the record. Wrap it with n8n's error workflow for reliability.
Activate
Turn the workflow on. Every lead now lands in your system, cleanly mapped.
By following these steps, you can integrate YourGPT AI chatbot with n8n. For any questions, contact our team via Live support or Mail Us.