1
Create a new task
Type
workflowai task new into the terminal and press enter2
Enter a description for your task
Enter a description of the task that defines the inputs and outputs for the task.In this context, the input is the information and data you will give you the AI, and the output is what the AI will give back to you.
Tips on optimizing task descriptions
Tips on optimizing task descriptions
To make sure that the input and output is defined correctly, note the following in your description:
- What would you give to the task as input?
- What do you expect as output?
- Are there any edge cases or constraints to be mindful of?
See an example task description
See an example task description
Given a city, output the country that city exists within
3
Review the generated task
- WorkflowAI will generate a class for both the input and output (as well as a class for the task description).
See example generated task
See example generated task
- Review, the input and output for the task:
- If you are happy with the generated task, enter
Yto save - If not, enter
nand start at step 1
- If you are happy with the generated task, enter
Note: itโs more important to make sure the input and output are correct at this stage. The task description is less important for now.
4
(Optional) Refine your task description
Here are some steps to refine your description to get better results
- a
- b
- c
- d
- e