Connectors

Connectors are a special type of node that bridge your AI workflows to external services. Unlike Specialist nodes that call an LLM, connectors bypass the LLM entirely and make direct REST API calls to the configured service.

What Connectors Do

In a typical Modular9 workflow, the final step is often delivering the AI-generated content somewhere: posting to Slack, creating a GitHub issue, sending an email, or pushing to a database. Connectors are purpose-built for this.

Chat Trigger → Blog Writer → SEO Optimizer → [Connector: Mailchimp]
                                                    ↓
                                          Creates campaign with
                                          AI-generated content

The connector receives the upstream node's text output and uses it as the body, message, or content of the API call. LLM-generated content flows into the action automatically — no manual data mapping required.

Available Connectors

Modular9 includes 21 native connectors organized into categories:

Communication

| Connector | Actions | |-----------|---------| | Slack | Post message to channel | | Gmail | Send email | | Outlook | Send email |

Developer Tools

| Connector | Actions | |-----------|---------| | GitHub | Create issue, pull request, comment on PR | | Webhook | POST to any HTTP endpoint |

CRM & Sales

| Connector | Actions | |-----------|---------| | HubSpot | Create contact, update deal | | Zendesk | Create ticket, update ticket |

Productivity

| Connector | Actions | |-----------|---------| | Notion | Create database entry, append to page | | Google Drive | Upload file |

Email Marketing

| Connector | Actions | |-----------|---------| | Mailchimp | Create campaign, add subscriber | | SendGrid | Send transactional email | | Mailerlite | Create campaign | | Klaviyo | Create campaign, add profile |

Social Media

| Connector | Actions | |-----------|---------| | Twitter / X | Post tweet | | LinkedIn | Create post | | Instagram | Create media post | | YouTube | Upload video, create post | | Facebook Pages | Create post |

Database

| Connector | Actions | |-----------|---------| | Supabase | Query, insert, call RPC, invoke edge function |

Media

| Connector | Actions | |-----------|---------| | StoryForge Renderer | Submit render job, poll for completion, return video URL |

Authentication

Each connector requires credentials specific to the target service. These are configured in the connector node's Advanced Settings dialog under Connector Configuration.

Credentials are stored per-node in the canvas state. The auth fields vary by connector:

// Example: Slack connector auth
{
  "action": "post_message",
  "auth": {
    "botToken": "xoxb-your-bot-token",
    "channel": "#general"
  },
  "params": {
    "username": "Modular9"
  }
}

Credentials are stored in workflow state

Connector credentials are persisted with the workflow in the database. Treat your saved workflows as sensitive. For production deployments, ensure your database is appropriately secured.

Connector Executor Pipeline

The Connector Executor (src/lib/execution/connector-executor.ts) is the server-side dispatcher that routes execution to the correct connector implementation:

export async function executeConnector(
  pluginId: string,
  config: ConnectorConfig,
  upstreamContent: string,  // output from the previous node
  signal?: AbortSignal       // for cancellation
): Promise<ConnectorResult>

Each connector implementation:

  1. Reads auth credentials from config.auth
  2. Reads parameters from config.params
  3. Injects upstreamContent as the body/message/content
  4. Makes an HTTP request to the target service
  5. Returns { success: boolean, data: unknown, raw: string }

Timeout and Cancellation

All connectors use a 30-second request timeout by default. Workflows can be cancelled via AbortSignal — if the upstream execution is cancelled, in-flight connector calls are aborted.

The StoryForge Renderer connector is an exception — it uses a longer 10-minute polling timeout to wait for render job completion.

The Webhook Connector

The webhook connector is the most flexible — it POSTs the upstream node's output to any HTTP endpoint you specify:

{
  "action": "post",
  "auth": {
    "url": "https://your-service.com/webhooks/modular9",
    "secretHeader": "X-Webhook-Secret",
    "secretValue": "your-hmac-secret"
  },
  "params": {
    "contentType": "application/json"
  }
}

This lets you integrate with services not natively supported: Linear, Jira, Salesforce, or any internal system with an HTTP API.

Adding Connectors to the Canvas

Connectors are in the Connectors tab of the right sidebar (separate from specialist plugins):

  1. Click the Connectors tab in the right panel
  2. Browse or search by category
  3. Drag the connector onto the canvas, or click to place it
  4. Click the gear icon to open Advanced Settings and configure credentials
  5. Connect the upstream specialist node to the connector

Connectors as workflow endpoints

Best practice: connectors work well as the final node in a workflow. The AI generates content in upstream nodes, and the connector delivers it. You can have multiple connector endpoints (fan-out pattern) to deliver to multiple services in parallel.

Next Steps