DA10: Capstone: three automations for Sharma Textiles

Lesson 3 of 5 · reading 15–25 minutes; practice and project time is on the module page

Project 2: the inbox router

🎯You'll be able to

Build the inbox router with rules first, a person for unclear and suspicious emails, and acknowledgements that don't repeat.

🏠The everyday picture

A receptionist at a busy office reads the subject of each letter and drops it in the right tray: accounts, sales, complaints. Unsure ones go to the office manager. The inbox router does the same for email.

📘What it really is

📝A worked example

A learner tested the router on 30 real-style sample emails:

Category Emails Routed correctly
Orders 9 9
Returns 6 5 (one said "send back the wrong colour")
Wholesale 5 5
Accounts 4 3 (a refund paid as a credit note went to Returns)
Person (unclear) 6 6 sent to a person

28 of 30 handled correctly, and the two misses were found in the weekly review. Adding "send back" and "wrong colour" to the Returns keywords, and checking "credit note" before the Returns words, fixed both. No email was left unassigned, because unclear ones went to a person.

🌍Where it's used

📝Case scenario

A Hindi-English email, "Mera order abhi tak nahi aaya, please check", is routed to Other because the keyword table only has English words. The person who receives it marks it "Orders". In the weekly review, the learner adds common Hinglish phrases such as "order nahi aaya" to the table and tests ten mixed-language emails.

🖱️Try it

Write 30 sample customer emails, including some in Hindi or Hinglish and some that are unclear. Build the router with a keyword table and a fallback to a person, and record how many were routed correctly.

⚠️Common mistakes

🛠️For your project

This is Project 2. In the practice kit, emails come from the simulator's inbox (GET /inbox/emails) instead of Gmail, and the unclear team is called "Person".

✅Quick check

Why should unclear emails go to a person rather than a default team?

Show the answer

So nothing is misrouted silently, and the corrections can improve the rules.

What should you check before sending customer emails to an AI service?

Show the answer

That the client's data rules allow it, and what that service does with the data.

← PreviousProject 1: the payment workflow
ProLearners Assist