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.

Installing YourGPT community node

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.

YourGPT node in n8n

Creating a new 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.

Creating new 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.

Creating a session

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 action
  • message: The text content you want to send
  • session_uid: Map this from the output of the Create Session action

Click Execute Node.

Sending a message

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.


Advanced Usage

Note

YourGPT can be integrated into complex n8n workflows to create powerful AI-driven automations.

Workflow Ideas

Here are some ways to use YourGPT in your n8n workflows:

  • Content Generation: Use to generate content for social media or blogs on a schedule
  • Customer Support Automation: Trigger YourGPT responses based on incoming support tickets
  • Workflow Automation: Use to automate specific workflows.

Note

For optimal performance, consider implementing error handling and retry logic in your workflows.


By following these steps, you can integrate YourGPT AI chatbot with n8n. For any questions, contact our team via Live support or Mail Us.

On this page