> For the complete documentation index, see [llms.txt](https://docs.borndigital.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.borndigital.ai/insights/building-new-projects/advanced-analysis-project-using-flow/3.-configure-parameters-and-prompts.md).

# 3. Configure parameters and prompts

Now that we have created the new project, it's time to prepare it for the analysis phase by defining parameters and prompts for the data files analysis.

## Defining parameters

Parameters are responsible for analyzing data using AI.

1. Open the [**Parameters**](/insights/workspace/design/parameters.md) module.
2. Create or import parameters:
   1. To create a parameter:
      1. Select **+ Create**, then **Custom**.
      2. Enter the parameter **Name**.
      3. Select the **Language** in which the **Definition** is written.
      4. Write the **Definition** used for the analysis.
      5. Select the expected **Output format**.
      6. For **String** or **Number** outputs with fixed choices, enter the **List of values** that can be returned. Confirm each value with **Enter**.
      7. For a **String** output, optionally enter a **Fallback value** for cases where the analysis does not return one of the configured values. When both **List of values** and **Fallback value** are populated, you can enable **Enforce** to replace a result that does not match the configured values with the fallback.
      8. For a **Boolean** output, describe in **Definition** when the result should be `true` and when it should be `false`. For example: `Return true if the agent greeted the client. Return false otherwise.` Leave **List of values** and **Fallback value** empty, and leave **Enforce** disabled.
      9. Select **Save**.
   2. To import parameters:
      1. Select **Import**.
      2. Select the parameter file to import.

### Defining the Flow connector

A Flow connector passes data between the Insights project and a Digital Agent flow.

1. Open the [**Parameters**](/insights/workspace/design/parameters.md) module.
2. Select **+ Create**, then **Flow connector**.
3. Use **Connect to project** to select a Digital Agent flow project. We recommend selecting a [proxy flow project](/insights/building-new-projects/advanced-analysis-project-using-flow/1.-create-digital-agent-flow-projects.md#create-a-proxy-flow-project).
4. Choose the **Select trained version** value used for the analysis.
5. Enter the Flow connector **Name**.
6. (Optional) Specify **Output variables** to limit which variables returned by the flow are available in Insights. Leave the field empty to return all valid named entities.
7. (Optional) Enable **Previous parameter results to flow** to add results from earlier prompts. The current conversation is still sent as the main flow input.
8. (Optional) Enable **Send unprocessed transcript/text to flow** to add the structured raw transcript or text to the flow metadata.
9. For Text/Email projects, optionally enable **Should process email attachments** to let the flow inspect and use email attachments.
10. Select **Save**.

## Defining prompts

Prompts combine parameters into logical groups.

1. Open the [**Prompts**](/insights/workspace/design/prompts.md) module.
2. Create or import prompts:
   1. To create a prompt:
      1. Select **+ Create**.
      2. Enter the prompt **Name**.
      3. Select the **Language** in which the prompt is processed.
      4. Select **Parameters** individually, including user-created, imported, or predefined parameters, or use a **Predefined parameter group**.
      5. (Optional) Select a **Previous parameter** to pass its value, such as a summary of the transcript or text, as input to this prompt.
      6. (Optional) Change **Instructions** to adjust the output requirements.
      7. (Optional) Add **Conditions** to run the prompt only when the configured criteria match.
      8. (Optional) Change the model **Provider**.
      9. Select **Create**.
   2. To import prompts:
      1. Select **Import**.
      2. Select the prompt file to import.
