Skip to main content
Version: 1.13.x

Connections

A Connection is a reusable OAuth connection that your flows can take scoped actions within. Google Workspace, Microsoft 365, and Slack components can re-use Connections.

Prerequisite​

  • Configure a provider's OAuth registration. To configure OAuth, see Configure connection OAuth.
  • Sign in to the Langflow server. Any signed-in user can create their own connection.

Add a connection​

To add a connection, do the following:

  1. In the Langflow header, click your profile icon, and then select Settings.
  2. Click Connections.
  3. Click Add connection.
  4. Select a Provider, such as Google Workspace, Microsoft 365, or Slack.
  5. Enter a Handle. The handle is a stable name for the connection that is stored with a flow and can travel with exported flow JSONs without sharing keys. The handle cannot be renamed.
  6. Enter a Display name. This is the label in the Langflow UI. The display name can be renamed.
  7. If you're connecting Slack, select whether the connection acts as the account that authorizes it, or as a Slackbot. Google Workspace and Microsoft 365 connections act as the account that authorized the connection, including when another user selects an instance-shared connection.
  8. In Scopes to request, select the permissions your flows require, and clear the rest. Components that perform actions through connections require specific scopes. For example, the Gmail component requires the gmail.send scope to send emails.
  9. Click Continue, and complete consent in the OAuth provider window. If Continue is unavailable and Langflow reports that no OAuth registration is configured for the provider, you have to first configure the OAuth connection, or ask your server administrator to configure it. For more information, see Configure connection OAuth.

Use a connection in a flow​

To use a connection in a flow, do the following:

  1. Add a component that uses a connection, such as Gmail: Send Email, a Microsoft 365 component, or a Slack component.
  2. In the component's connection field, select the connection you want to use. The connection field displays which Scope is required. For example, Gmail: Send Gmail requires gmail.send. A connection stores the handle, such as google/work, and the OAuth token never appears in the flow.

Share a connection with other users​

If you're logged in as a Langflow superuser, the Add connection pane includes an additional Share with the whole instance checkbox. Enable this box to share the connection with all users on the Langflow server. The connection appears in users' Instance tab.

Include connections with exported flows​

An exported flow keeps each connection field as its handle, such as google/work. The file does not include the token, account, or scopes.

To transfer a flow connection from one server to another, do the following:

  1. Export the flow. On the Projects page, click More on the flow, and then select Export. Langflow downloads a JSON file. Each connection field in the JSON file includes the connection handle.

  2. Import the flow on the other Langflow server. On the new server's Projects page, click Upload a flow, and then select the JSON file.

  3. On the new server, create a connection with the same provider and handle. For example, for a connection with the handle google/work, select Google Workspace and enter the handle work.

  4. Complete the OAuth consent, and request the scopes the flow's components need. For more information, see Add a connection.

  5. Run the flow. The flow uses the saved handle.

Manage connections​

Open Actions on the row.

  • Check credential tests the stored credential. It is available after the connection has one.

  • Authorize or Reconnect starts consent again. Scopes the connection already holds stay selected. Check another scope to add it, or clear one to drop it. A pending connection offers Authorize. A connection that already completed consent offers Reconnect.

  • Rename changes the display name. The handle stays the same, so flows that reference it keep working.

  • Allow scheduled and deployed runs lets the owner opt a user-owned connection into unattended execution.

    Enable this setting for owner-based webhooks, deployments, and resumed jobs that use a user-owned connection. For example, POST /api/v1/webhook/FLOW_ID runs the flow as the flow's owner and resolves connections for that owner.

    The authenticated playground and POST /api/v1/run endpoints act as the signed-in caller. They can use the caller's own connections, connections shared with the caller, or instance connections without enabling this setting.

    A public playground link or an A2A agent cannot use a connection, whether this setting is enabled or disabled.

  • Revoke removes the stored credential. The row stays, with status Revoked, and later runs fail until someone authorizes the connection again.

  • Delete removes the connection. It is available after the credential is gone, so revoke the connection first, or delete it while it is still Pending.

Revoking a Google connection authorized through OAuth sign-in also asks Google to revoke the token. For Slack, Langflow asks Slack to revoke the stored token whether you used OAuth sign-in or Paste a token. The notification confirms when the provider revoked the token. If provider revocation fails or is unavailable, it says that the credential was only removed from Langflow and directs you to revoke it in the provider's settings. For a Slack Socket Mode app-level token (xapp-), use Basic Information > App-Level Tokens in the Slack app's settings if Slack rejects the revocation request. Microsoft Entra has no per-grant revocation endpoint for this flow, so an administrator removes the app's consent in Entra when upstream revocation is required. For the provider differences, see Provider revocation and token rotation.

Was this page helpful?

Support
Search