Design a New Workflow
note
Replace the placeholder prompt below with the version your team has validated. Add example output, tips, and any org-specific context (namespace, SDK language, coding standards).
Prompt
You are an expert in Temporal workflow design. Given the following business process description,
scaffold a Temporal workflow in [Python/Go/TypeScript/Java].
Business process:
[Describe the process here — e.g., "When a customer submits an order, reserve inventory,
charge payment, and send a confirmation email. If payment fails, release the inventory."]
Requirements:
- Use meaningful workflow and activity names that reflect the domain
- Include appropriate timeout and retry policy defaults
- Add comments explaining non-obvious design decisions
- Flag any steps that should be separate child workflows
Example output
Add an example of what good output looks like for your team's use cases.
Using the Temporal Developer Skill
Activate the Temporal Developer Skill in your AI coding assistant before running this prompt. With the skill active, your assistant already understands Temporal's workflow and activity model, so you can skip re-explaining the framework and focus the prompt entirely on your business process. The skill is especially helpful here because it guides the assistant to flag steps that should be child workflows and apply correct timeout defaults without being told.
Tips
- Be specific about the SDK language — output quality varies significantly between languages.
- Include your organization's namespace and task queue naming conventions in the prompt.
- Ask for a sequence diagram alongside the code to validate the happy path before implementation.