# AI content creation and publishing engine with Mistral: n8n workflow

> Started by an incoming Telegram message, and works across Telegram and YouTube. It hands the judgement calls to Mistral and OpenAI.

Source: https://millionrounds.com/workflow/ai-content-creation-and-publishing-engine-with-mistral (Millionrounds; every figure on the page links to its filing or article)

[Automation library](https://millionrounds.com/workflows) · [Content](https://millionrounds.com/workflows?category=Content#library)

# AI content creation and publishing engine with Mistral

Started by an incoming Telegram message, and works across Telegram and YouTube. It hands the judgement calls to Mistral and OpenAI. 27 steps, 1 branch, 1 loop or waits: large, and worth reading before you trust it with anything live.

Large Calls a model: Mistral, OpenAI

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fai-content-creation-and-publishing-engine-with-mistral)

**27 steps** Large: read it before trusting it with anything live

**1** Branch: places the flow splits

**1** Loop or waits

**2** Services it connects to

## The flow

Starts it 2 Model 8 Logic 9 Service 8

The steps in the order they run, from what starts it.

- 1 **Mistral Cloud Chat Model1** Lm Chat Mistral Cloud *Model*
- 2 **Mistral Cloud Chat Model** Lm Chat Mistral Cloud *Model*
- 3 **Structured Output Parser** Output Parser Structured *Model*
- 4 **Recieve Message From YTAdmin** Telegram trigger *Starts it*
- 5 **Structured Output Parser1** Output Parser Structured *Model*
- 6 **Receive Response from Creatomate** Webhook *Starts it*
- 7 **Generate Content** Chain Llm *Model*
- 8 **Generate Title and Description** Chain Llm *Model*
- 9 **If Render Not Successful** If *Logic*
- 10 **Set Content** Set *Logic*
- 11 **Set Upload Details** Set *Logic*
- 12 **Send Message to YTAdmin** Telegram *Service*
- 13 **Split into Categories for Processing** Split Out *Logic*
- 14 **Get Video File** Http Request *Service*
- 15 **Merge Categories into Complete Scenes** Merge *Logic*
- 16 **Generate Background Image Using OpenAI** Open Ai *Model*
- 17 **Generate Voice over Using OpenAI** Open Ai *Model*
- 18 **Upload Video To Youtube** You Tube *Service*
- 19 **Consolidate Scene Data** Aggregate *Logic*
- 20 **Set Image URL** Set *Logic*
- 21 **Convert file into Base 64 string** Extract From File *Service*
- 22 **Send Success Message to YTAdmin** Telegram *Service*
- 23 **Render Request** Http Request *Service*
- 24 **Wait 1 minute to reduce request load on Open AI** Wait *Logic*
- 25 **Upload to MongoDB** Http Request *Service*
- 26 **Send Progress Message to YTAdmin** Telegram *Service*
- 27 **Set Video File URL** Set *Logic*

## How it's built

- **Starts on:** An incoming Telegram message
- **Steps:** 27, with 1 branch, 1 loop or waits
- **Size:** Large: read it before trusting it with anything live
- **Connects to:** Telegram, YouTube
- **Model:** Mistral, OpenAI

## Questions

What does it need to run?

An n8n account, plus your own Telegram and YouTube accounts, and a key for Mistral and OpenAI. You connect your own accounts after importing it; none are included.

What starts it?

It starts on an incoming Telegram message.

Does it use AI?

Yes. It calls Mistral and OpenAI. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

Take your time. At 27 steps it is large: read it before trusting it with anything live.

How do I import it?

Copy the workflow, open a new workflow in n8n and paste. The steps appear on the canvas, ready for your own accounts.

**Before you run it**

Nothing here has been tested by us. It is somebody's working automation, read and described from its own steps. Treat the connections it wants as a list of accounts it will touch, and read the 27 steps before you point it at anything that matters.

## Run it in n8n

- **Create your n8n account** Free to start. n8n is where the workflow runs. [Create an n8n account ↗](https://millionrounds.com/n8n)
- **Download the workflow** Free with a Millionrounds account. [Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fai-content-creation-and-publishing-engine-with-mistral)
- **Paste it into n8n** Open a new workflow in n8n and paste. Then connect your own accounts.

Stored with the author's traces removed: canvas notes, instance identifiers, saved credential names and any live document they had left behind.

## Connects to

Each opens the other workflows that use it.

[Telegram](https://millionrounds.com/workflows?service=Telegram#library)[YouTube](https://millionrounds.com/workflows?service=YouTube#library)

## Workflows like it

Also content, with the same services where possible, closest in size first.

- [**Automated Instagram content creation from trending posts** 27 steps · calls a model · Postgres, Telegram](https://millionrounds.com/workflow/automated-instagram-content-creation-from-trending-posts)
- [**Generate Instagram content from top trends with OpenAI** 27 steps · calls a model · Postgres, Telegram](https://millionrounds.com/workflow/generate-instagram-content-from-top-trends-with-openai)
- [**Async Video Polling Engine - Background Job Handler** 27 steps · Redis, S3](https://millionrounds.com/workflow/async-video-polling-engine-background-job-handler)
- [**Auto-create TikTok videos with VEED.io AI and ElevenLabs** 28 steps · calls a model · Google Sheets, Telegram](https://millionrounds.com/workflow/auto-create-tiktok-videos-with-veed-io-ai-and-elevenlabs)
- [**Auto-generate social media videos with OpenAI and Blotato** 28 steps · calls a model · Google Drive, Google Sheets](https://millionrounds.com/workflow/auto-generate-social-media-videos-with-openai-and-blotato)
- [**Create AI-generated UGC marketing videos with Telegram** 26 steps · calls a model · Telegram](https://millionrounds.com/workflow/create-ai-generated-ugc-marketing-videos-with-telegram)
