# Brilliant Directories

The Brilliant Directories piece in ZBrain Flow enables seamless integration with your Brilliant Directories site, allowing you to automate user management and interact with the platform via API calls. With this connector, you can create new users, manage memberships, and execute custom API calls, streamlining directory-based workflows. Whether you're handling user registrations or performing advanced API operations, Brilliant Directories integration helps automate these tasks efficiently.

### **How to Use Brilliant Directories in ZBrain Flow?** <a href="#how-to-use-brilliant-directories-in-zbrain-flow" id="how-to-use-brilliant-directories-in-zbrain-flow"></a>

**Step 1: Select Brilliant Directories as Your Connection**

1. Click on the ‘+’ button in the Flow and search for ‘Brilliant Directories’.
2. Select Brilliant Directories.
3. Choose the required action from the available options:
   * **Create New User** – Add a new user to your Brilliant Directories site.
   * **Custom API Call** – Make a request to a specific API endpoint for custom operations.

### **Create a New User in Brilliant Directories** <a href="#create-a-new-user-in-brilliant-directories" id="create-a-new-user-in-brilliant-directories"></a>

**Step 1: Create a Connection**

1. In the 'Connection' dropdown, click on 'create connection'.
2. A window will appear, prompting you to enter connection details:
   * Provide a unique name in the 'Connection Name' field.
   * In the 'API Key' field, enter your API key which can be generated from here: <https://ww2.managemydirectory.com/admin/apiSettings>
   * In the 'Instance URL' field, enter your Brilliant Directories website instance URL.

* Click 'Save' to establish the connection.

**Step 2: Configure User Details**

1. Enter the user’s email in the 'Email' field.
2. Set a password for the new user account in the 'Password' field.
3. Provide the subscription ID from your website in the 'Subscription ID' field.
4. If needed, add extra user details in the 'Meta' field.

### **Make a Custom API Call in Brilliant Directories** <a href="#make-a-custom-api-call-in-brilliant-directories" id="make-a-custom-api-call-in-brilliant-directories"></a>

**Step 1: Create a Connection**

* Follow the instructions in the ‘Create a Connection’ section from ‘Create a New User in Brilliant Directories’ to set up the connection.

**Step 2: Configure API Request**

1. Select the HTTP method from the 'Method' dropdown.
2. If needed, add headers by clicking 'Add Item' in the 'Headers' section (authorization headers are automatically injected from the connection).
3. Add query parameters in the 'Query Parameters' field by clicking 'Add Item.'
4. Enter the request body in the 'Body' field if required.

**Step 3: Set Additional Options**

1. Enable 'No Error on Failure' if you want the flow to continue even if the request fails.
2. Set the request timeout in the 'Timeout (in seconds)' field.


---

# Agent Instructions: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.zbrain.ai/zbrain-documentation/zbrain-builder/flows/flow-components/brilliant-directories.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
