Package Information
Available Nodes
Documentation
n8n-nodes-typebot
This is an n8n community node that lets you use Typebot in your n8n workflows.
Typebot is a powerful open-source chatbot builder that allows you to create conversational apps and forms.
n8n is a fair-code licensed workflow automation platform.
Table of Contents
Installation
Follow the installation guide in the n8n community nodes documentation.
Community Node Installation
- Open your n8n instance
- Go to Settings > Community Nodes
- Click Install
- Enter
n8n-nodes-typebotin the npm Package Name field - Click Install
Manual Installation (for development)
cd ~/.n8n/custom
npm install n8n-nodes-typebot
After installation, restart your n8n instance.
Prerequisites
You will need:
- A Typebot account (cloud or self-hosted)
- An API token from your Typebot account
Getting Your API Token
- Log into your Typebot dashboard at https://app.typebot.io
- Navigate to Settings & Members → My account
- Scroll to the API tokens section
- Click Create
- Give your token a name and click Create
- Copy the generated token (you'll need it for n8n credentials)
Operations
This node supports all major Typebot API operations:
Chat Operations
- Start Chat - Start a new chat session with a published typebot
- Continue Chat - Continue an existing chat session
- Start Preview Chat - Start a preview chat session (for testing unpublished bots)
Typebot Management
- List - List all typebots in your workspace
- Get - Get a specific typebot by ID
- Create - Create a new typebot
- Update - Update an existing typebot
- Delete - Delete a typebot
- Publish - Publish a typebot
- Unpublish - Unpublish a typebot
- Get Published - Get a published typebot by public ID
Results
- List - List all results for a typebot
- Get - Get a specific result
- Delete - Delete results
- Get Stats - Get statistics for a typebot
Workspaces
- List - List all workspaces
- Get - Get a specific workspace
- Create - Create a new workspace
- Update - Update a workspace
- Delete - Delete a workspace
- List Members - List workspace members
Folders
- List - List all folders in a workspace
- Create - Create a new folder
- Update - Update a folder
- Delete - Delete a folder
Credentials
To use this node, you need to set up Typebot API credentials in n8n:
- In n8n, go to Credentials → New
- Search for "Typebot API"
- Enter your credentials:
- API Token: Your Typebot API token
- Base URL:
- For cloud:
https://app.typebot.io/api - For self-hosted:
https://your-domain.com/api
- For cloud:
- Click Save
Compatibility
- Tested with n8n version 1.0.0+
- Tested with Typebot API v1
Usage
Example 1: Start a Chat Session
This example shows how to start a chat with a published typebot:
- Add the Typebot node to your workflow
- Select Chat as the resource
- Select Start Chat as the operation
- Enter your typebot's Public ID (found in typebot settings)
- Optionally add a message or prefilled variables
- Execute the node
The node will return:
sessionId- Use this to continue the conversationmessages- The bot's response messagesinput- The next expected input from the user
Example 2: Continue a Chat Conversation
- Add another Typebot node
- Select Chat → Continue Chat
- Enter the
sessionIdfrom the previous chat start - Enter the user's message
- Execute the node
Example 3: Create a New Typebot
- Add the Typebot node
- Select Typebot → Create
- Enter your Workspace ID
- Enter the typebot configuration as JSON:
{
"name": "My New Bot",
"groups": [],
"events": [{
"type": "start",
"graphCoordinates": { "x": 0, "y": 0 }
}]
}
Example 4: Get Chat Results
- Add the Typebot node
- Select Result → List
- Enter your Typebot ID
- Execute to get all conversation results
Tips for Usage
Working with JSON Fields
Several operations require JSON input (like creating or updating typebots). You can:
- Use the Code node to prepare the JSON data
- Reference data from previous nodes using expressions:
{{ $json.fieldName }} - Use the Set node to construct complex objects
Chat Flow Pattern
A typical chat flow in n8n might look like:
- Webhook node - Receives user message
- Typebot (Start/Continue Chat) - Processes the message
- IF node - Check if conversation is complete
- Typebot (Get Result) - Retrieve final answers
- HTTP Request - Send response back to user
Error Handling
- Enable Continue On Fail in node settings to handle errors gracefully
- The node will return error information in the output if the API request fails
- Check Typebot API documentation for specific error codes
Resources
- n8n community nodes documentation
- Typebot documentation
- Typebot API reference
- GitHub repository (update with your repo URL)
License
Support
For issues or questions:
- Open an issue on GitHub
- Check the n8n community forum
- Refer to Typebot documentation
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
Version History
1.0.0
- Initial release
- Support for all major Typebot API operations
- Chat operations (start, continue, preview)
- Typebot management (CRUD operations)
- Results management
- Workspace and folder management
