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 explicit control over the logic.
Code Tasks let you run JavaScript to apply explicit, rule-based logic. They’re best when you need full control over what happens and how the output is calculated.
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 | Explicit rules you control completely |
| 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 needs explicit, controlled logic | Code Task | You control every step of the logic |
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.