LearnAI
Новинки AI · Автоматизация без кода · Lesson 4/10
← To the catalog
Task

AI step: parse, classify, summarize, answer

Describe ONE AI step for the scenario. Return JSON {"ai_task":"...","input":"...","instruction":"...","output":"..."}. ai_task — one of: 'parse', 'classify', 'summarise', 'generate'; input - what is served at the entrance; instruction - task for AI, as for a trainee; output — in what FORM to return the result (for example, a category in one word from the list).

Unlock access to submit solutions for instant AI review.
Integrate AI into the script
💡 A piece of theory

An AI step is a place in a scenario where conventional logic fails, and an 'understanding' assistant is needed. Four AI working roles inside the pipeline: parse (extract the name, amount, date from the text), classify (is this a complaint, question or spam), summarize (compress a long letter into three lines), generate (write a draft response). Mechanics: you give the AI ​​a piece of data and a task instruction as input, and get back a predictable result that goes further along the pipeline. Leverage: write the instructions as if you were explaining to a new trainee - what is at the input, what needs to be done, in what form to return it. Insider: Ask the AI ​​to respond with structure, not free text - for example, 'return the category with one word from the list.' Then the next step can reliably rely on this. Second trick: always add the option 'not sure / other', otherwise the AI ​​will forcefully push a non-standard case into an inappropriate category. A typical rookie mistake: vague instructions like 'process the letter'. AI is not a telepath: the vaguer the task, the more unpredictable the output and the more often the next step breaks.

How is it assessed · passing 70

  • 1Valid JSON without text around it25%
  • 2The required fields are there20%
  • 3AI role from the valid set15%
  • 4The instructions are specific, the output is structural40%
Your promptClaude ⌄
🔒

Unlock access to submit solutions for instant AI review.