Back to Nodes

PlainNode

Last updated Jul 14, 2025

n8n node for Plain API integration

1 Weekly Downloads
10 Monthly Downloads

Included Nodes

PlainNode
PlainTrigger

Description

n8n-nodes-plain

This is an n8n community node that provides integration with Plain, a modern customer support platform.

Installation

To install this node in your n8n instance, follow these steps:

  1. Go to Settings > Community Nodes
  2. Enter n8n-nodes-plain and click Install

Credentials

To use this node, you'll need to create Plain credentials:

  1. Go to your Plain workspace settings
  2. Navigate to the API section
  3. Create a new API key
  4. Copy the API key and add it to your n8n Plain credentials

Nodes

This package provides two main nodes:

Plain Trigger

The Plain Trigger node allows you to start workflows based on webhook events from Plain. It includes:

  • Webhook Integration: Automatically receives webhook events from Plain
  • Event Filtering: Choose specific events to trigger your workflow (thread created, status changes, etc.)
  • Signature Verification: Optional webhook signature verification for security
  • Flexible Configuration: Customizable webhook path and event selection

Supported Events:

  • Thread events (created, status changed, assignment changed, labels changed, etc.)
  • Email events (received, sent)
  • Chat events (sent, received)
  • Note events (created)
  • Customer events (created, updated, deleted)
  • Slack/Teams message events

Setup:

  1. Add the Plain Trigger node to your workflow
  2. Copy the webhook URL from the node
  3. Add the webhook URL to your Plain workspace under Settings > Webhooks
  4. Select the events you want to trigger your workflow
  5. Optionally enable signature verification with your webhook secret

Plain Node

The Plain Node provides full API access to Plain resources:

Customer

  • Create: Create a new customer with email, name, and optional fields
  • Get: Get a customer by email address
  • Update: Update customer information including name, email, and customer groups
  • Delete: Delete a customer from your workspace

Thread

  • Create: Create a new support thread with title, description, and custom fields
  • Reply: Reply to an existing thread with text or markdown content
  • Get: Get thread(s) by ID, external ID, customer ID, or customer email
  • Update: Update thread title, priority, status, assignment, and custom fields
  • Get All: Get all threads with optional filtering by status, priority, and assignment

Event

  • Create: Create a custom timeline event for a customer

Label

  • Add: Add a label to a thread
  • Remove: Remove a label from a thread

Company

  • Create: Create or update a company with domain name and details
  • Get: Get a company by ID or domain name
  • Update: Update company information including name, domain, and account owner
  • Delete: Delete a company
  • Get All: Get all companies with pagination support

Tenant

  • Upsert: Create or update a tenant with external ID and details
  • Get: Get a tenant by ID or external ID
  • Add Customers: Add customers to tenants
  • Remove Customers: Remove customers from tenants
  • Set Customer Tenants: Set the complete list of tenants for a customer
  • Get All: Get all tenants with pagination support

Example Usage

Plain Trigger Workflow

Set up a webhook trigger that responds to thread status changes:

{
  "events": ["thread.thread_status_transitioned"],
  "verifySignature": true,
  "signatureSecret": "your-webhook-secret"
}

Create a Customer

{
  "resource": "customer",
  "operation": "create",
  "email": "customer@example.com",
  "fullName": "John Doe",
  "shortName": "John"
}

Create a Thread

{
  "resource": "thread",
  "operation": "create",
  "customerId": "customer_123",
  "title": "Need help with billing"
}

Reply to a Thread

{
  "resource": "thread",
  "operation": "reply",
  "threadId": "thread_456",
  "text": "Thanks for contacting us. We'll help you with your billing question."
}

Development

To develop this node locally:

  1. Clone the repository
  2. Install dependencies: npm install
  3. Build the node: npm run build
  4. Link the node: npm link
  5. In your n8n installation, link the node: npm link n8n-nodes-plain

License

MIT