Skip to content

Connections

Connect workflows to outside services such as webhooks and Discord, keep their secrets safe, and limit how much they're used.

A connection holds the address and credentials of an outside service. Steps such as Send webhook and Send notification pick a connection instead of holding a URL or a token themselves, so the secret is stored once, encrypted, and never shown in the editor, the workflow's JSON or run history.

Connections are on Automations › Connections in the sidebar. Each one belongs to you; other users can't see or use it.

The Connections page

Each row shows the service's logo and the connection's name, with the service and where it runs underneath, such as OpenAI · Hosted. The other columns show how many workflows use it, its last test result and today's usage. Search by name, service or address, and filter by type, such as AI, Notifications or Webhooks. The ⋯ menu tests, edits or deletes a connection, or opens its details.

The Connections page

Where it runs comes from the connection's address, not only the service you picked:

LabelAddress
Locallocalhost, 127.0.0.1 or the Docker host, such as Ollama on the same machine
Private networkA private or local network address, such as 192.168.1.20 or gpu-box.lan
HostedA public address, such as a cloud provider
GatewayA public AI gateway that forwards to other providers, such as OpenRouter

So an OpenAI-compatible API connection pointed at a hosted provider shows Hosted, not self-hosted.

Adding a connection

  1. Open Automations › Connections and click Add connection.
  2. Choose the service. Services are grouped (Local AI, AI providers, AI gateways, OpenAI-compatible, Notifications, Webhooks), each with a short description such as Local AI inference, and the footer shows how many there are. Type in the search box to find one by name, such as ollama, claude or discord, and use the arrow keys and Enter to choose. The service's form opens straight away, with any setup notes it needs, such as using Azure deployment names as model names.
  3. Fill in its settings. The name starts as the service's name; change it to something you'll recognize in a step's picker.
  4. Optionally click Test connection to check the settings before saving.
  5. Click Add connection.

The form shows only what the service needs: its credentials, its address when you run it yourself, and its default model for AI services. A hosted service's fixed address, generation defaults and the request timeout are under Advanced settings, and limits under Usage limits. The Get a key link next to a key opens the provider's page for creating one.

Click the back arrow to choose another service. What you entered for each service stays until you close the dialog.

You can also create a connection from a step, without leaving the editor: open the step's Connection picker and choose Create connection, or click the Create connection button the picker shows when nothing fits yet. The dialog lists only the services that fit the step, and the new connection is selected when you save. Canceling leaves the step as it was, and your draft, selection and canvas stay as they are. See Connections from a step.

Webhook

Sends JSON or a file to any address, for example a home automation hub or your own script.

Setting
AddressThe full address deliveries go to, such as https://hooks.example.com/tessra. Kept secret.
HeadersOptional, one per line, such as Authorization: Bearer abc123. Kept secret.
The receiver ignores repeated deliveriesTurn on only if you've set the receiver up to drop requests whose Tessra-Delivery header it has already seen. Tessra can't check this. See Repeated deliveries.

Every request carries two headers your receiver can use:

  • Tessra-Delivery: the same value every time the same step of the same run sends, including retries.
  • Tessra-Attempt: which attempt this is, starting at 1.

Discord webhook

Posts messages to a Discord channel. In Discord, open the channel's settings, go to Integrations › Webhooks, create a webhook and click Copy Webhook URL. Paste it as the Webhook URL. Post as changes the name messages show; leave it empty to use the webhook's own.

Messages never mention anyone, even if the text contains @everyone or a user mention. Each message is posted whole, as one post, and never shortened or split: Discord takes 2,000 characters, or 4,096 when the step gives the message a title. A longer message fails the step with a note saying how to fit it. Attachments can be up to 10 MiB in all.

Discord says clearly when it didn't post something (for example an unknown webhook or a rate limit), so those failures never need your confirmation.

AI services

OpenAI-compatible APIs (such as Ollama, OpenAI or OpenRouter), Anthropic and Google Gemini connect AI steps to a language model. They have presets for each service and a model picker; see AI connections.

Text recognition

Tessra OCR connects the Extract text step to the optional OCR worker, with its address filled in for Docker Compose. See Set up Tessra OCR.

Secrets

Settings marked Kept secret are encrypted when you save and never sent back to the browser. When you edit the connection, a saved secret shows Saved. Leave empty to keep it.:

  • Leave it empty to keep the saved value.
  • Type a new value to replace it.
  • Click Clear to remove it when you save.

Before an error is stored in the connection's test result or a run's history, Tessra replaces the connection's secrets with [redacted], however the service wrote them (in different letter case or encoded in an address). When a service's own message still holds part of a secret, Tessra leaves that message out and keeps only its own description of the error. Errors about the network never include the system's own error text.

Testing a connection

Saving and testing are separate. Test connection in the dialog tests what you've entered without saving it, and you can save a connection whose service is down or unreachable right now. On a saved connection, choose Test from its menu or Test connection on its page. A test never sends anything a service could act on: a webhook test only opens a connection to the address (with TLS for https) and closes it without sending a request, and a Discord test reads the webhook's details.

The test reports each check separately:

CheckMeans
ReachableTessra could connect to the service. Required.
CredentialsThe service accepted the secret. Not checked when that can't be told without sending something, as for a webhook.
A feature, such as ignores repeated deliveriesWhether the service supports something a step can rely on. Optional. Tessra can't check this for a webhook, so it shows not checked and trusts your setting.

A check is passed, warning, failed or not checked, and optional checks are marked optional. Only the required checks decide the result:

ResultMeans
PassedEvery required check passed.
Passed with warningsThe required checks passed, but something gave a warning or an optional check failed.
FailedA required check failed.
Not verifiedNothing required could be checked. This isn't a pass.

The Last test column shows the last saved connection test and how long ago it ran. It's a record, not the service's current state: a service that passed yesterday may be down now. Changing a connection's settings clears its last test. A test of unsaved settings in the dialog isn't recorded.

Sending a test message

To check a connection end to end, choose Send test message from its menu. A webhook gets a POST with {"event": "test", ...} and a Tessra-Delivery that starts with test:, and a Discord channel gets a short message. This is the only time Tessra sends something without a workflow, and it counts toward the connection's usage.

Using a connection in a step

Steps that reach outside Tessra have a Connection setting that lists only the connections that fit, such as Discord webhooks for Send notification. Below the settings, the step says what it sends and where, such as Sends file details and values you choose to hooks.example.com., and how it handles failures.

The editor's Problems list flags a step when:

  • connection_unavailable: the connection was deleted or its plugin is no longer installed.
  • connection_wrong_capability: the connection can't do what the step needs.
  • connection_missing_feature: the step needs a feature the connection doesn't have, such as ignoring repeated deliveries.

Tests don't send anything to a connection unless you allow it.

Sending files and headers

Send webhook can send a file's content instead of JSON: set its File to content from an earlier step, such as Load content, and the request carries the file's own type. A webhook takes requests of up to 25 MiB. The step can also add Headers, but it can't replace the connection's own headers, credentials such as Authorization, the Tessra- headers or headers the transport sets.

Send notification can attach a file when the connection takes attachments, as Discord does. The editor flags a step that attaches a file to a connection that can't.

Usage limits

Under Usage limits you can cap each connection:

  • Requests a day (1 to 1,000,000, counted per UTC day)
  • Tokens a day, for AI connections (counted per UTC day; see Tokens and limits)
  • Requests a minute (1 to 10,000)
  • At the same time (1 to 16)

Leave a limit empty for no limit. A step that reaches a limit doesn't fail: it waits and continues when the limit allows, and the run shows as Waiting. A service that answers 429 Too Many Requests is treated the same way, waiting as long as it asks (at most an hour at a time), when sending again is safe: for Discord, and for a webhook whose receiver ignores repeated deliveries. Otherwise the run asks you, as below.

Every request counts, including retries, repeats after you choose Send again, and connection tests. Testing unsaved settings for a new connection doesn't count, since there's no connection to count it for yet; testing changed settings of a saved connection counts towards that connection. The Today column shows today's requests, and tokens for AI connections.

Request timeout

Request timeout under Advanced settings shortens how long one request may take, from 1 second up to the limit of the kind of connection (10 seconds for webhooks and Discord, 3 minutes for AI services). Leave it empty for that limit.

The connections list and a connection's page

The list shows each connection's service, category, how many published workflows use it, its last test and today's usage. Click a connection's name to open its page:

  • Configuration: every setting, with secrets shown only as Saved or Not set, and the last test's checks. Edit opens the same form as adding.
  • Models: for AI connections, the service's models and what Tessra knows about each. See Choosing a model.
  • Usage: today's requests and tokens against the limits, and the last 14 days.
  • Dependent workflows: published workflows that use the connection, and, for AI connections, workflows with steps that follow its default model.

Changing a connection that's in use

When published workflows use a connection, saving changed settings asks you to confirm first and names those workflows: their next runs use the new settings. When you change an AI connection's Default model, the form also lists the workflows with steps that follow it.

Repeated deliveries

When a step fails after it started sending, Tessra can't always tell whether the service acted on it. Sending again could post the same message twice or trigger the same action twice, so Tessra doesn't retry on its own. The run stops at Needs attention and asks you; see Steps that need confirmation.

That happens whenever the service may have acted: it timed out (including while it's still sending its answer), the connection dropped after Tessra started sending, the service answered with an error, or its answer is too large or isn't valid JSON when it says it is. An error answer counts too, because a plain webhook receiver can answer with an error after acting. It happens for every method, GET included, because the receiver decides what a request does. A failure before any of the request was sent, such as an address that can't be reached, is retried as usual.

A connection that knows its service can say more. Discord states when it didn't post a message, so those failures fail or wait without asking.

For a webhook, you can set the receiver up to ignore repeats. Tessra sends the same Tessra-Delivery header on every attempt of a step; if your receiver drops requests whose Tessra-Delivery it has already seen, turn on The receiver ignores repeated deliveries, and Tessra retries such failures automatically. That guarantee comes from your receiver, not from Tessra: Tessra can't check it, and trusts your setting. Errors that sending again can't fix, such as wrong credentials or a 404, still fail at once.

Outside addresses only

By default a connection can only reach public internet addresses. Addresses on your own network (such as 192.168.1.10 or localhost) are refused, even when a public name points at them or a service redirects to them.

An admin can turn on Allow private network addresses for a connection that should reach a home server. Cloud metadata addresses such as 169.254.169.254 stay blocked even then.

Each connection also sends only to its own site: a webhook to the scheme, host and port of its address, a Discord webhook to Discord. A request, redirect or connection test anywhere else is refused, so a connection's credentials never go to another site. A connection that has no site of its own sends nowhere; only a kind of connection without secrets may be built to send anywhere.

Every request also follows these rules:

  • Only http and https addresses, without a user name or password in the address.
  • At most 3 redirects, each checked again. A redirect from https to http is refused.
  • Requests up to 256 KiB unless the kind of connection allows more (25 MiB for a webhook, 10 MiB for Discord), and responses up to 1 MiB, counting the bytes actually sent and received, whatever size the request or answer claims. Longer answers are refused, never cut.
  • 10 seconds to answer and finish sending the answer, unless the kind of connection allows longer.
  • Connection tests follow the same rules, including the time limit and private network setting.

Administrators can change the defaults for the whole server; see Outbound requests.

When a kind of connection changes

A new version of Tessra can change what a kind of connection stores. Tessra moves existing connections over the first time they're used. If it can't, the connection says its settings can't be used any more, and you enter them again.

Deleting a connection

Choose Delete from the connection's menu. A connection that a published workflow uses can't be deleted; change those workflows first. Drafts that use a deleted connection show connection_unavailable until you pick another one.