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

Scenario: incoming emails sort themselves out

Design a script for parsing incoming letters. Return JSON {"scenario_name":"...","trigger":"...","ai_step":"...","steps":["..."],"action":"..."}. trigger — event with a letter; ai_step - what the AI ​​does (determine the type + pull out the fields + assess the urgency/tone); steps - routing by type, necessarily with a branch for incomprehensible letters, which goes to the person; action - final (folder/task/draft). DO NOT send auto-responses directly to customers.

Unlock access to submit solutions for instant AI review.
Automatically sort mail
💡 A piece of theory

Parsing inboxes is a classic of automation, because letters arrive in a stream and follow a similar pattern. Scheme: trigger - a new letter has arrived in the desired mailbox; AI step - read and determine the type (question, application, invoice, spam) and at the same time pull out the key fields; steps - by type decide where to direct it; action - put it in the desired folder, create a task or prepare a draft. The mechanics are that AI turns chaotic text into a neat table with fields, and then the simple logic “if type = application, then...” works. Leverage: do not let the automation immediately send answers to clients - let them prepare a draft at first, and you send them. Insider: ask the AI ​​to also evaluate the tone and urgency of the letter ('angry client', 'on fire') and raise such letters to the top - this will catch fires before they flare up. Second trick: create a category “unclear” and direct it to the person, rather than guessing. A typical mistake: setting up an auto-reply to all letters in a row - then the bot happily responds to both spammers and colleagues, creating noise and confusion.

How is it assessed · passing 70

  • 1Valid JSON without text around it25%
  • 2The required fields are there25%
  • 3Safe and complete parsing of letters50%
Your promptClaude ⌄
🔒

Unlock access to submit solutions for instant AI review.