DEV

Mistral AI

Mistral AI Connection

Put Mistral AI to Work with @Human Automations and @Human Agents

The Mistral AI Connection documents all Triggers, Actions and Query Operations available for creating automations via the Mistral AI API.

What can you do with the Mistral AI Connection?

  • Connect to the Mistral AI API in a few clicks

  • Use the related Mistral AI Operations (see below) in @Human Automations or @Human Agents

Trigger Operations

Chat Completion Created

Triggers on: chat-completions/chat_completion.created

Triggered when a new chat completion is successfully generated.

FIM Completion Created

Triggers on: fim-completions/fim_completion.created

Triggered when a fill-in-the-middle code completion is successfully generated.

Embeddings Generated

Triggers on: embeddings/embeddings.generated

Triggered when vector embeddings are successfully generated for the provided input.

Model Deleted

Triggers on: models/model.deleted

Triggered when a fine-tuned model is successfully deleted.

File Uploaded

Triggers on: files/file.uploaded

Triggered when a new file is successfully uploaded to Mistral AI.

File Deleted

Triggers on: files/file.deleted

Triggered when a file is successfully deleted from Mistral AI.

Fine-tuning Job Created

Triggers on: fine-tuning-jobs/fine_tuning_job.created

Triggered when a new fine-tuning job is successfully created and queued.

Fine-tuning Job Succeeded

Triggers on: fine-tuning-jobs/fine_tuning_job.succeeded

Triggered when a fine-tuning job completes successfully.

Fine-tuning Job Failed

Triggers on: fine-tuning-jobs/fine_tuning_job.failed

Triggered when a fine-tuning job fails to complete.

Batch Job Created

Triggers on: batch-jobs/batch_job.created

Triggered when a new high-volume batch inference job is successfully created.

Batch Job Succeeded

Triggers on: batch-jobs/batch_job.succeeded

Triggered when a batch inference job completes successfully.

Batch Job Failed

Triggers on: batch-jobs/batch_job.failed

Triggered when a batch inference job fails to complete.

Agent Completion Created

Triggers on: agents-completions/agent_completion.created

Triggered when a response is successfully generated by a Mistral agent.

OCR Completed

Triggers on: ocr/ocr.completed

Triggered when text and structured content extraction from a document or image is completed.

Action Operations

Action: Create Chat Completion

Action: Analyze Image

Action: Create Embeddings

Action: API Request

Query Operations

Example link

Example link

Obtaining Access Credentials

To obtain a Personal Access Token (PAT) for Mistral AI Studio, follow these steps:

Prerequisites:

  • Any Mistral AI Studio account (free or paid). No additional subscription needed unless accessing premium features.

Steps:

  1. Log in to Mistral AI Studio with your Mistral account (free or paid subscription).

  2. Click on your profile icon (top-right).

  3. Navigate to API Keys.

  4. Click on Create New Key.

  5. Enter a name (e.g., API-Access) and set an expiration (or leave as "No Expiration").

  6. Click on Create New Key.

  7. Copy this token (treat it like a password—store securely).

    • This is your PAT for system-to-system access.

Configuring Webhooks

  1. Set up a webhook trigger on a third-party automation platform (e.g., Zapier, Make, or n8n) to receive external events.

  2. Configure an action that utilizes the Mistral AI API with your generated API Key.

  3. Implement a polling mechanism to monitor asynchronous operations, such as the Batch API.

  4. Periodically check the status of your batch jobs via the GET /v1/batch/jobs/{job_id} endpoint.

  5. Trigger downstream actions once the job status reaches a terminal state (succeeded, failed, or cancelled).

Code (Apache v2.0): Service Connectivity and Metadata

Code (Apache v2.0): List of External Resources and Internal Mapping

Last updated