# MistralAI Cloud

<figure><img src="/files/ThNn66JVJnMGcqD27sAE" alt=""><figcaption></figcaption></figure>

## Description

The MistralAI component allows you to integrate MistralAI into your flows. You can customize the parameters used by MistralAI component, and also specify the context of knowledge that the MistralAI component operates on, as well as provide the input query.&#x20;

The MistralAI component UI changes depending on the model selected, as each model has differing available options. You can specify the exact model to run with the "**Model**" dropdown menu. These models range from Chat and more. See the Parameters table for more information on the available models to use.

The MistralAI component has the identifier of opa-**X**, where **X** represents the instance number of the MistralAI component.

## Inputs

The MistralAI component has the following input connections.

| Input Name                               | Description                                                                      | Constraints                                                                                                      |
| ---------------------------------------- | -------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- |
| From data Loaders/ Data source/Vector DB | This input connection represents the context information for the MistralAI model | Must originate from a Data Loader/Data Source or VectorDB component.                                             |
| From Input                               | This input connection represents the user query for the MistralAI model.         | Must originate from a component that generates a text string as output such as a Python or Text Input component. |

## Component settings

| Parameter Name | Description                                                                                                                                                                                              |
| -------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Credentials    | You can specify to use your own MistralAI credentials                                                                                                                                                    |
| Model          | The list of models displayed depends on the customer's credential.                                                                                                                                       |
| Prompt         | Describes how you want the MistralAI model to respond. For example, you can specify the role, manner and rules that MistralAI should adhere to. Also mention the component ID to connect the components. |

## Advanced configurations

| Options        | Description                                                                                                                                                                                                                 |
| -------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Enable caching | This option determines whether the results of the component are cached. This means that on the next run of the Flow, MistralAI will utilize the previous computed component output, as long as the inputs have not changed. |
| Caching time   | <p>Only applicable if the "Enable Caching" option has been enabled.<br>This parameter controls how long MistralAI will wait before automatically clearing the cache.</p>                                                    |
| Max token      | This parameter controls the token that  will send to MistralAI system                                                                                                                                                       |

## Outputs

The MistralAI component has the following output connections.

| Output Name | Description                                                                 | Constraints                                                    |
| ----------- | --------------------------------------------------------------------------- | -------------------------------------------------------------- |
| To Output   | This output connection contains the text result of the MistralAI component. | Can be connected to any component that accepts a string input. |


---

# 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.diaflow.io/workflow-builder/nodes/public-ai-llm-models/mistralai-cloud.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.
