Process Street gives you two powerful ways to automate logic and decisions inside your workflows: AI Tasks and Code Tasks.
Both can process data, make decisions, and generate outputs, but they work in very different ways. Understanding which one to use will help you design accurate and reliable workflows.
AI Tasks use large language models (LLMs) to understand, interpret, and generate text.
They’re best suited for subjective, flexible, or context-based work that requires reasoning rather than hard rules.
Use an AI Task when your workflow needs to:
Because AI models are probabilistic, you may see slightly different outputs even with the same input. That’s expected.
Example use cases:
A Code Task is a better fit if you need identical outputs every time.
Code Tasks execute scripts in JavaScript using exact, deterministic logic. They’re best when accuracy must be 100% consistent every time a workflow runs.
Use a Code Task when your workflow needs to:
Example use cases:
| Use Case | Best Option | Why |
|---|---|---|
| Parsing or summarizing free text | AI Task | Handles natural language with flexibility |
| Enforcing strict validation or rules | Code Task | Predictable, deterministic outcomes |
| Automating creative or judgment-based tasks | AI Task | Can reason and adapt to context |
| Data transformations or math | Code Task | Exact, reliable calculations |
| Workflow needs to adapt over time | AI Task | Learns from varied inputs and phrasing |
| Workflow must always behave identically | Code Task | Same output for the same input, every time |
If the workflow’s success depends on exact, repeatable results, start with a Code Task.
If the workflow depends on understanding or generating text, start with an AI Task.
For complex workflows, combine them. For example, use an AI Task to interpret an answer and then a Code Task to validate or act on it.
Help us improve this help center.