Creating a workflow with AI
Describe what you need in plain language:“Create a workflow that syncs our Salesforce contacts every hour.”
“Set up a daily job that sends a Slack summary of open tickets at 9 AM.”
“Add a workflow that sends a welcome email when a new user is added to the database.”The AI creates the function, sets up the trigger, and registers it. You can view the generated code in the Code tab and test it in the sandbox.
Workflow structure
Workflows are Inngest functions stored in your app’s/inngest/functions directory. Here is a scheduled workflow example:
Cron scheduling
Scheduled workflows use cron expressions:
You don’t need to memorize cron syntax — just tell the AI when you want it to run:
“Run this every weekday at 8 AM.”
Event-driven workflows
Event-driven workflows run in response to events emitted by your app:Step functions
Workflows are broken into steps — discrete units of work managed independently by Inngest. Steps give you:- Automatic retries — Failed steps are retried without re-running earlier steps
- Durability — Completed steps are not re-executed on retry
- Observability — Each step is tracked separately in the Workflows tab