> For the complete documentation index, see [llms.txt](https://docs.zbrain.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.zbrain.ai/zbrain-documentation/zbrain-builder/flows/flow-components/connections.md).

# Connections

Dynamically fetch external service connections in ZBrain flows using connection external IDs for flexible automation.

Connections in ZBrain Flow facilitate seamless integration with external platforms, enabling users to securely retrieve and manage connection details. This feature is particularly beneficial when connection external IDs are dynamically received, such as through a webhook message. Instead of manually specifying a connection, this action allows you to dynamically fetch the appropriate connection based on the received external ID, ensuring greater flexibility and automation in your workflows.

### **Finding the Connection External ID** <a href="#finding-the-connection-external-id" id="finding-the-connection-external-id"></a>

The external ID can be found on the connection settings page. Hover over the connection name to reveal and copy the external ID. This helps retrieve connection values using their external IDs from the project.

### **How to Integrate Connectors with ZBrain Flow** <a href="#how-to-integrate-connectors-with-zbrain-flow" id="how-to-integrate-connectors-with-zbrain-flow"></a>

1. **Add the "Connections" Component:**
   * Click the ‘+’ Button in ZBrain Flow.
   * In the search bar, type "Connections" and select it from the available options.
2. **Choose an Action:**
   * Select the desired action from the available options to configure it.

### **Available Actions in ZBrain Flow** <a href="#available-actions-in-zbrain-flow" id="available-actions-in-zbrain-flow"></a>

#### **1. Read Connection** <a href="#id-1.-read-connection" id="id-1.-read-connection"></a>

Retrieves a connection by name.

**Configuration Steps:**&#x20;

* **Enter the Connection External ID** – Provide the unique external ID of the connection to fetch details.

**Using the Retrieved Connection Data:**

* After testing the "Read Connection" step, you can access the retrieved connection data as dynamic values in subsequent steps.
* Click the dynamic value insertion icon (often represented as (X) or similar) in the target field of the subsequent step.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.zbrain.ai/zbrain-documentation/zbrain-builder/flows/flow-components/connections.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
