Skip to content
Mistral AI

How to use Mistral AI

Artificial intelligenceCost: 1 credit + 2 per runTop 100 · #65Full guide

What it is for

Mistral AI in flooows gives you access to Mistral's language models to generate or summarize text, create embeddings, upload files and extract text from documents with OCR. Use it to classify emails, draft replies, analyze PDFs or prepare semantic search inside your flows.

Mistral AI has no triggers: it is used as an action inside flows started by other triggers, such as a new email or a form.

Set up the connection

Authentication type: API key or token · Custom credentials

  1. 1Sign in at console.mistral.ai.
  2. 2Create an API key in the keys section and copy it.
  3. 3In flooows, add a Mistral AI step, click "Connect" and paste the key.
  4. 4If you route traffic through Cloudflare AI Gateway, choose that option and enter Cloudflare Account ID, Gateway ID and Gateway Auth Token; the Mistral API Key is optional if the gateway stores the key.
  5. 5Save the connection.
Connection fieldTypeRequired
Cloudflare Account IDTextYes
Gateway IDTextYes
Gateway Auth TokenSecret keyNo
Mistral API KeySecret keyNo

Credentials are stored encrypted in your isolated database, in Spain, and are never shown in plain text.

How to use it in a flow

  • Ask Mistral: pick the Model and write the Question with clear instructions and data mapped from earlier steps; tune Temperature (lower = more consistent) and Max Tokens.
  • Create Embeddings turns a list of Texts into vectors for search or comparison.
  • Run OCR: choose Model, the Document Source (URL or file) and the Document; use Pages to limit which pages are processed.
  • List Models shows the models available to your account.

Tips

  • •Ask for JSON output if later steps will use the data.
  • •Set Random Seed for reproducible results while testing.
  • •Remember flooows can anonymize confidential data before it is sent to the AI.

Actions (6)

Operations available as flow steps. Expand each one to see its fields.

Ask Mistral7 fields
FieldTypeRequired
ModelList (from your account)Yes
QuestionLong textYes
TemperatureNumberNo
Top PNumberNo
Max TokensNumberNo
Random SeedNumberNo
TimeoutNumberNo
Create Embeddings2 fields
FieldTypeRequired
TextsList of valuesYes
TimeoutNumberNo
Upload File2 fields
FieldTypeRequired
FileFileYes
PurposeFixed listYes
Run OCR6 fields
FieldTypeRequired
ModelFixed listYes
Document SourceFixed listYes
DocumentDynamic fieldsYes
PagesList of valuesNo
Include ImagesYes / NoNo
TimeoutNumberNo
List Models0 fields

No fields to configure.

Custom API Call10 fields
FieldTypeRequired
urlDynamic fieldsYes
MethodFixed listYes
HeadersKey / value pairsNo
Query ParametersKey / value pairsNo
Body TypeList (from your account)No
BodyDynamic fieldsNo
Response is BinaryYes / NoNo
Return Error as OutputYes / NoNo
TimeoutNumberNo
Follow redirectsYes / NoNo

Common errors

401 error

Check the key or generate a new one in the Mistral console.

429 rate limit error

Add retries with a wait or review your plan limits.

Timeout

Increase Timeout or reduce the size of the text or document.

Field types

"List (from your account)" loads options from your connected account; "Dynamic fields" appear depending on earlier choices; in any field you can insert data from previous steps with the data selector (e.g. {{trigger.email}}). More about data between steps