Skip to main content

Mention connectors

Each system a step uses is named in the spec with an @mention of its connector. The mention tells Unstract Flow which connector a step calls, and which instance of it.

Write a mention​

Type @ in the spec and the editor suggests connectors as you type. A connector already in the workflow lists each of its instances, plus one for a new instance. A connector marked Not built yet can't be used. The Tool Registry tab of the editor's Tools and configuration panel lists every connector by category, with a search box.

Put each mention in the sentence that uses the connector:

Read the next unread thread in @email_gmail. Save each PDF attachment to @extfs_s3 under invoices/, then record the vendor and total in the invoices table in @database.

The editor turns a mention into a chip once you type a space or punctuation after it. An email address such as ap@example.com stays plain text, and so do @file: and @table:: they name one of the project's input files or reference tables. Type @file: or @table: to pick from the project's files or tables.

To use a second instance of a connector, add the instance number: @extfs_s3:2. Connectors, instances and credentials explains instances.

What a chip tells you​

A chip warns you when a mention can't be used as written. The message appears on the chip.

MessageWhat to do
Tool "@name" not found in registry. Type @ to see available tools.Check the spelling, or pick the connector from the suggestions.
"Gmail" is not added to this workflow yet.Select the + on the chip (Add Gmail to workflow).
Multiple tools match "name". Please specify: …Change the mention to one of the names listed.
Instance 2 is not added yet.Add the instance on the connector's card in the Tools tab.
Instance @name:4 not found (2 configured). Use :3 for a new instance.Use an instance that exists, or the number the message offers for a new one.
Multiple instances exist. Specify one: @name:1 … @name:2.Add the instance number to the mention.

A mention that uses a connector's display name, such as @gmail, asks whether you meant the connector's id, such as @email_gmail; a misspelled id isn't corrected. A connector that still needs setup shows a gear, Configure, on its chip, which takes you to its card in the Tools tab.

Mentions and the Tools tab​

A mention of a connector's id joins the Tools tab once it becomes a chip, or when you select + on the chip. When the project holds exactly one credential for that connector, the new instance gets that credential; Credentials in a project explains a project's credentials. A mention by display name, or with an instance number the message rejects, isn't added. In a workflow that opens read only for you, Flow adds no connector and the chip has no +. In the Classic editor, hover over the mention to see a similar message; the wording differs.

Flow checks the mentions again when the spec is saved and removes an instance that nothing mentions and that has no configuration: no credential, call limit or default inputs, and no setting changed from its default. The project's only credential for the connector doesn't count, since a new instance gets it again. On an email, file or Database connector, which keeps a pipeline, that credential counts, because a new instance starts a new pipeline and the next run processes every item again. Flow keeps every instance of a connector mentioned without a number, and it removes nothing while the workflow has an active deployment. A configured instance stays until you select Remove instance on its row. While the workflow has an active deployment, Remove instance fails: pause the deployment first.