Skip to main content
1

Create a new task

Type workflowai task new into the terminal and press enter
2

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.
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?
Given a city, output the country that city exists within
For more example tasks check out our task of the week blog posts
3

Review the generated task

  1. WorkflowAI will generate a class for both the input and output (as well as a class for the task description).
  1. Review, the input and output for the task:
    • If you are happy with the generated task, enter Y to save
    • If not, enter n and start at step 1
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
  1. a
  2. b
  3. c
  4. d
  5. e