Skip to content
Integrate YourGPT with n8n

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

  1. 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
    📌

    This will add the YourGPT node to your available workflow nodes.

  2. 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
  3. 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
  4. 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
  5. 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
    📌

    You’ll receive a response with a session_uid that you’ll need for the next step.

  6. 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
  7. 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

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.
📌

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