This example demonstrates how to build an Marketing Multilingual Generator using Inngest and the DeepSeek R1 model. The generator will generate marketing content in multiple languages, adapting the tone and style to the target audience.
Requirements To successfully follow this tutorial, you will need the following:
- Git installed
- Node 22+
pnpm
- An Inngest account (for deployment)
- A Koyeb account (for the DeepSeek-R1 QWEN 32b model)
Use the link below to deploy the DeepSeek-R1 QWEN 32b model to Koyeb in one-click:
From there, you can choose to either run the application locally or deploy it to Koyeb.
Deploy the application to Koyeb using the following button:
Then, once your application is deployed, login into your Inngest dashboard and configure a new sync using the following url:
https://<YOUR_DOMAIN_PREFIX>.koyeb.app/api/inngest
Once the sync successful, navigate to the Functions tabs and invoke the generate-multilingual-campaign
function with this payload:
{
"data": {
"brandInfo": "Inngest is the developer platform for easily building reliable workflows with zero infrastructure.\n\nShipping reliable background jobs and workflows are a time consuming and frustrating experience for any software team. Local development is painful. Managing infrastructure is tedious. Days to weeks of developer time is lost doing this work at every company.\n\nInngest is solving this problem for every software team, no matter team size or experience.",
"campaignGoal": "Target CTO, Architect and Founders building AI B2B products.",
"targetLanguages": ["Germany", "France", "England"]
}
}
You should be redirected to the Runs view and see your workflow run.
-
Install dependencies:
pnpm install
-
Configure the deployed model URL in the
.env
file:
DEEPSEEK_API_KEY=test
DEEPSEEK_BASE_URL=https://<YOUR_DOMAIN_PREFIX>.koyeb.app/v1
-
Start the development server:
pnpm dev
-
Start the Inngest Dev Server:
npx inngest-cli@latest dev
Open the browser and navigate to http://127.0.0.1:8288/
to access the Inngest Dev Server.
Navigate to the Functions tabs and invoke the generate-multilingual-campaign
function with this payload:
{
"data": {
"brandInfo": "Inngest is the developer platform for easily building reliable workflows with zero infrastructure.\n\nShipping reliable background jobs and workflows are a time consuming and frustrating experience for any software team. Local development is painful. Managing infrastructure is tedious. Days to weeks of developer time is lost doing this work at every company.\n\nInngest is solving this problem for every software team, no matter team size or experience.",
"campaignGoal": "Target CTO, Architect and Founders building AI B2B products.",
"targetLanguages": ["Germany", "France", "England"]
}
}
You should be redirected to the Runs view and see your workflow run.