Using Variables in Squad Tasks
In Orkeia, you can use variables in fields likedescription, expectedResult of tasks to make them dynamic, reusable, and customizable at runtime.
Syntax
Variables follow the following format:How It Works
Variables are automatically replaced at the time of Squad execution. Based on what is passed, whether in the description or expectedResult.Example
Corresponding Payload
Rendered Result
- Description: Revisar o contrato do cliente Matheus Matos com o número CT-2025-123.
- Expected Result: Contrato CT-2025-123 deve estar validado no sistema até 10/09/2025.
Common Use Cases
| Variable | Common Use |
|---|---|
#{CLIENTE_NOME} | Client’s name |
#{CONTRATO_ID} | Contract/document code |
#{DATA_LIMITE} | Due date or delivery date |
#{USUARIO_RESPONSAVEL} | Name of the responsible user |
#{EMAIL} | Notification email |
#{ENDERECO} | Relevant address or location |
Notes
- Variables must be in the
exact format #{VARIAVEL}. - Variables missing from the payload will not be replaced and will appear in the final text as they are.
- Use clear and standardized names to facilitate reuse.
Where Can I Use Variables?
Variables are used within Tasks and can appear in two specific fields:task.descriptiontask.expectedResult
