Skip to main content

Connectors, instances and credentials

A connector is how an Unstract Flow workflow reaches another system, such as a mailbox, a folder, a database, an API or a website. You name a connector in the spec with an @mention. Flow gives the workflow an instance of that connector, and you connect each instance with a credential and its settings.

Mention a connector​

Type @ and the connector's name, for example @email_gmail, and the editor turns the mention into a chip. The chip warns you when the name matches no connector, when it matches more than one, when it's close to a connector's name (it asks whether you meant that one), and when the connector still needs setup.

Use the connector's exact name. A near match such as @gmail stays unresolved until you change it to @email_gmail.

Instances​

An instance is one connection to a connector, with its own credential, settings and name. @email_gmail refers to instance 1.

To work with two mailboxes, add a second instance with Add another instance on the connector's card in the Tools tab, and mention it by the number its row shows, such as @email_gmail:2. Before the next save, mention the new instance, or give it a setting other than its default or a credential other than the project's only one for that connector, or the save removes it, even when it shows Ready. Once a workflow has two or more instances of a connector, every mention of that connector needs its number, such as @email_gmail:1.

You can rename an instance in the Tools tab, for example to Production S3, to tell instances apart. When you save a spec that doesn't mention an instance, and that instance has no configuration, Flow removes it. Configuration is a credential other than the project's only one for that connector (a new instance gets that one again on its own), a setting with a value other than empty or its default, a call limit or default inputs. Flow keeps every instance while the spec still mentions the connector without a number, and while the workflow has an active deployment.

Connect an instance​

In the editor's Tools tab, each instance row shows Setup until it's connected and Ready after that. Ready means the instance has a credential, or needs none; it doesn't mean the credential works or the settings are filled in. Use Test Connection to check. The counter at the top shows how many instances are ready.

  1. Select Configure on the row.
  2. Choose a credential, or add one.
  3. Fill in the connector's settings.
  4. Select Test Connection where the dialog offers it, then Save Settings. A connector with a credential and no settings shows Save Configuration instead. If a value can't be used, the save is refused and the message names the setting. A setting you never save uses the default the dialog shows, even if you never open the dialog. The exception is a Gmail instance that existed before is:inbox became the default for its Thread Filter: it keeps reading every thread outside Spam and Trash until someone saves a filter.

The Credential list starts with the project's credentials for that connector, under In this project, then Your credentials. Saving the dialog with one of yours picked, or with one you create from Create new credential..., adds it to the project, so every workflow in the project can use it. When the project holds exactly one credential for a connector, each new instance of that connector gets it on its own. Credentials in a project says who can pick which.

Connect every instance before you run the workflow.

A deployment's runs use each instance's credential and settings as you last saved them: a change you save in the Configure dialog reaches them within 2 minutes. While the workflow has an active deployment, the Tools tab and the Configure dialog say so.

Adding, renaming, configuring and removing an instance need edit access to the workflow, and so does saving a step's gear: its default inputs, its call limit, or a review step's settings. A Member with a Blueprint share of the workflow's project, or no share, can't change them, and neither can a Viewer. Members and roles says who has edit access.

Credentials​

A credential is a saved login for a connector: an API key, an OAuth connection, a password or a certificate. Select the Credentials tab beside Projects to see yours. That page has three tabs: My credentials, Shared with me and Organization. A project's page has a Credentials tab of its own, which lists only that project's credentials. A credential belongs to the person who created it, and only they can change, share or reconnect it. You can pick a credential shared with you for a connector instance. Anyone who can edit a project can pick any of the project's credentials for a connector instance, and Flow shows their stored values to nobody; Credentials in a project covers how one joins and leaves.

StatusMeaning
ConnectedThe last check passed: a test of the saved values, an OAuth sign-in, or Flow's hourly OAuth token refresh. An OAuth credential you connect by signing in starts here: signing in is the check.
UntestedNo check has run on the saved values. A new credential starts here unless you connected it by signing in with OAuth, and saving changed values from Edit Credential sets it back here; a new name alone keeps the status. A credential for a connector whose test needs settings from a workflow, such as a host, leaves Untested when Test Connection passes in that workflow's Tools tab.
Reconnect neededThe last check failed: a test of the saved values, or Flow's hourly OAuth token refresh. Select Reconnect for an OAuth credential. For any other kind, select Edit Credential, enter the values that changed, and select Test connection on the credential's row.
Expires in N days or ExpiredA non-OAuth credential expires within 7 days, or already has. An OAuth credential never shows this: Flow refreshes its access token.

On the Credentials page, the status filter's Needs attention shows the rows marked Reconnect needed, Expires in N days or Expired.

Test Connection in a workflow's Tools tab runs with the instance's settings, such as a host or a bucket. A pass there is recorded on the credential. A failure is recorded unless one of those settings says where to connect or what to read, such as a host, a URL, a proxy, a region, a bucket or a folder. Then the credential keeps its status, because a wrong host or bucket fails the test too.

A setting that says where to connect, such as a host, a URL, an endpoint, a proxy, a region or a subdomain, sends the credential's secret to the place it names. Flow runs a test with such a setting only for the credential's owner, the people it's shared with, organization owners and admins, and people who can edit a workflow that has saved those settings with the credential. Anyone else sees why Flow refused. A bucket, a folder, a port, a timeout or an on/off switch doesn't say where. Nor does a setting the connector only sends to its own service, such as a SharePoint Site URL, a Google Sheets Spreadsheet URL, or the Browserless Proxy Country (ISO 3166), Proxy Preset and Sticky Proxy IP. Nor does a setting left at its default, such as the default region, or set to one of the choices a list offers. Anyone who can add credentials can test with those. Every test reaches public addresses only; Credentials says which addresses Flow refuses.

Test all tests the credentials you own that a row can test; Credentials says which it leaves out.

For a connector that signs in with OAuth, select the button named for the provider, such as Connect with Google, and sign in in the pop-up window. Where Flow has no sign-in set up for a provider, the dialog says so in place of the button, and that connector can't be connected yet. Flow refreshes OAuth tokens on its own, so an OAuth credential stays Connected until the provider revokes it or a refresh fails.

An OAuth credential that came with an imported workflow starts Untested. Each hour, Flow refreshes the OAuth tokens that expire within the next 7 days, and a refresh is a check. Flow never refreshes a token with no expiry date this way: to check one, select Reconnect, or select Test Connection for it in a workflow's Tools tab.

Call limits​

Unless the connector sets its own limit, each action of each connector instance in a workflow may make up to 1,800 calls per hour, shared by every run of that workflow; Database actions allow 500,000, and the reference table actions 100,000. To change the limit for a workflow, set Tool call rate limit (per hour) in the editor's Settings tab, up to 5,000. That limit is the default for every connector without a limit of its own. A connector's own limit stays: setting the workflow limit to 3,000 for a slow API, or to 100 to protect one, leaves Database at 500,000. The reference table actions have no instance, so nothing in the workflow changes their 100,000. To change one connector instance, Database's included, set Rate Limit for [instance] (calls/hour) in the step's gear dialog, up to 5,000; it replaces both. Clear it and the instance goes back to its connector's own limit, else the workflow's limit, else 1,800 calls per hour.

When a run reaches the limit, it waits and then continues on its own. A workflow last prepared before runs could wait still fails at the limit; prepare it again to get the wait. A run that waits too long fails. Call limits covers the limits in full.