# Connectors (/docs/guides/connectors)



A **connector** is a preconfigured action for a well-known service — Slack, SendGrid, Stripe,
OpenAI, Anthropic. Instead of filling in a URL, method, headers, authentication and mapping by
hand on an **API Call** node, you pick an action, map a few typed inputs, and use its result.

Connectors do not replace the API Call node. They are a catalog that **generates** an ordinary
node for you; the generic API Call stays the universal fallback for your own APIs, internal
services and any provider without a connector.

## Add a connector action [#add-a-connector-action]

In the Decision Builder, **Add connector action** opens the catalog. Pick a connector and an
action, and a node appears on the canvas, already configured:

* A **read** (Get Customer, List Channels, Extract) generates an **API Call** node whose
  response feeds the next nodes.
* A **side effect** (Send Message, Send Email) generates an **Action** node, delivered from the
  outbox after the execution is stored — a slow provider never holds up the caller.
* An **LLM action** (Classify, Extract, Summarize) generates an **AI judgement** node, with a
  typed answer rather than prose a later node would have to parse.

Map the inputs to values from the payload or from earlier nodes, choose a credential, and wire
the output into the next condition or output as usual.

## Credentials, per environment [#credentials-per-environment]

A connector authenticates with a **credential**. Store it once under **Settings → Credentials**:
give it a name, a provider, a type and the secret. The secret is encrypted at rest and never
leaves the server — the flow stores only a reference.

A credential can be scoped to **one environment** (a Stripe test key in staging, a live key in
production) or left shared across every environment. At run time the environment of the request
decides which one is used; if there is no environment-specific secret, the shared one applies.

## The endpoint is fixed [#the-endpoint-is-fixed]

A generated node calls a **fixed, code-controlled host** — the vendor's, from the connector's
definition. The URL is not yours to edit while the node is linked, and publishing re-checks it:
if the URL, method or authentication has drifted from the connector, the publish is refused.

To point somewhere else — a proxy, a self-hosted gateway — **Unlink** the node. It becomes a
plain API Call you own and edit, and it is screened by the outbound guard like any other.

## Email: templates and attachments [#email-templates-and-attachments]

The SendGrid **Send Email** node sends plain text, HTML, a **project email template** or a
SendGrid dynamic template, with optional attachments.

* **Email templates** (sidebar → Email templates) hold a subject and an HTML body with
  placeholders: `{{name}}` inserts a value (HTML-escaped), `{{{html}}}` inserts markup,
  `{{#items}}…{{/items}}` repeats per item and `{{^items}}…{{/items}}` shows when empty. The node's
  **Template data** fills them. A template is pinned when the decision is published, like a
  constant: edit it, then republish to send the change. Preview and **Send test** render the saved
  template with its sample data.
* **Attachments** come from a **URL** the outbox downloads when the email is sent — a PDF answered
  as a file, or JSON holding the document as base64 (name the field, e.g. `pdf_base64`) — with an
  optional credential; or from **base64 the flow already holds**. A downloaded document is never
  stored: a retry downloads it again. Up to 10 attachments, 10 MB each, 20 MB in all. The URL goes
  through the outbound guard: a host on a private network must be listed in
  `OUTBOUND_ALLOWED_HOSTS`.

## Running without a server [#running-without-a-server]

A connector-generated node is an ordinary node, so it runs in the embedded runtime exactly like
the rest of the flow. Credentials are supplied at run time as a map keyed by id or name and never
travel in a bundle; without a secret, the node follows its own failure setting.
