I could still name the patterns from Andrew Ng's course. I was less sure I could explain what happened between two calls to a model. So I opened the exercises again and followed one draft on its way through a program. By the end I wanted to try the same trick on a small part of my job in inside sales.

The first six sections come from working through my saved course exercises. The sales assistant in the last three is my own design exercise, built around invented correspondence. It isn't a description of a company system.

Write me an essay. Now do something with it.

Send a topic to a model and display the reply. That's a complete one-call writing program. If a paragraph is missing its evidence, the reader can copy the draft back into chat, ask for criticism, and request a revision. Week two's Reflection in a Research Agent moves those handoffs into the program.

CallSendGet back
DraftTopic and writing instructionsFirst draft
ReviewThe actual draft and review criteriaSpecific criticism
ReviseDraft and criticism togetherRevised essay

A reader submits the topic once. Underneath, one response becomes the material for the next request. Generating three independent essays would spend three calls without doing that work. Here the developer has fixed the order in advance. Farther along the course a model can choose a tool or decide which unfinished task to tackle next. A chat interface can hide either design. To see what makes the workflow agentic, follow the information and the decisions behind it.

Let the critic see the draft

The assignment calls its three functions generate_draft, reflect_on_draft and revise_draft. The names are easy to memorize. The interesting part is what's inside the envelope each function sends. In this sketch, ask(prompt) accepts a string and returns the model's reply. The API connection is left to the implementation.

# Pseudocode. Supply the API connection behind ask().
topic = "How city parks affect daily life"

draft = ask(f"Write a short essay on the following topic.\nTopic: {topic}")

feedback = ask(
    "Flag gaps in the reasoning, missing explanations or awkward wording. "
    "Give the critique before attempting a rewrite.\n"
    f"Draft:\n{draft}"
)

revised = ask(
    "Revise the draft in light of the review.\n"
    f"Draft:\n{draft}\n\n"
    f"Review:\n{feedback}"
)

draft holds the first essay. The application includes that string in its request for a critique, stores the answer in feedback, then gives the reviser both. The calls need no shared memory to make this work. Separating criticism from revision also lets me inspect the criticism. If the reviser changed a good paragraph for a bad reason, I know where to look.

A second opinion can repeat the first mistake

Give the same false premise to writer and critic and the revised essay may simply sound more certain of it. An external check can catch what another reading misses. Compare a number with a calculation, run a test, or look up the cited passage. Reflection gives the system a chance to improve. I still need a way to tell whether it did.

Who actually reads the clock?

Ask for the current time and a model can write something shaped like a time. Week three's Turning Functions into Tools supplies the missing clock.

from datetime import datetime

def get_current_time():
    """Return the local time where this program is running."""
    return datetime.now().strftime("%H:%M:%S")

The app describes the available function and its inputs to the model. In response to the question the model can request get_current_time. The app checks and executes the request, then hands the value back so the model can answer. The clock belongs to the machine running the function. If the user means Seoul time, the time zone has to travel through this design too.

Searching is one thing. Sending is another.

The research assignment attaches web and paper searches. The email exercise attaches a mock mail server with operations for search, marking as read, and sending. A model can write “I've sent it” without touching any of them. An application can confirm delivery only from the sending tool's result. A lookup and a send have different consequences, which is why an actual service needs permission checks, validation, failure handling and a record of the action.

Was the extra work worth it?

Adding a critic or a search step gives me a new design to test. In the week-four research lab, one component-level evaluation counts the share of results from a preferred set of domains. Here's a tiny version with three URLs.

from urllib.parse import urlsplit

urls = [
    "https://arxiv.org/",
    "https://www.nasa.gov/",
    "https://example.com/",
]
preferred = {"arxiv.org", "nasa.gov"}

def is_preferred(url):
    host = (urlsplit(url).hostname or "").lower()
    return any(host == d or host.endswith("." + d) for d in preferred)

ratio = sum(is_preferred(url) for url in urls) / len(urls) if urls else 0.0
print(round(ratio, 2))  # 0.67

Two out of three match. That tells me something quite narrow about source selection. It tells me nothing about whether the right paragraph was retrieved or whether the writer read it correctly. In this example an empty result scores zero. Even that is a choice about what the number means.

Look at the report and the route it took

An end-to-end test asks whether the finished report answers the question with evidence. A component test helps locate a failure. Did the search retrieve bad sources? Did the writer ignore a good one? A trace lets me follow the handoff. Dates and quantities admit exact checks. More open questions need criteria and, often, a reader. I keep some cases back so I can compare revisions on unfamiliar inputs, along with time and cost. Reflection edits this result. Evaluation tells me whether adding reflection was worthwhile.

Who picks the next step?

Draft, review, revise makes sense for any essay. A sunglasses shop has a different problem. One customer wants round frames for under $100. Another wants to return two pairs of Aviators bought last week. The first calls for an inventory query. The second changes both stock and the transaction record. In week five's Customer Service Agent, the model expresses its choice of operations as Python, the simulator runs it, and we can inspect the before and after. Writing the plan and executing it are two different jobs.

Plans can have fixed boundaries

A planner may lay out the whole job or revise the next action as results arrive. The plan needn't be code. What matters is who gets to choose.

WorkflowWho chooses what happens next?
FixedThe developer specifies the sequence and branches.
Planned at runtimeThe model uses the request and available evidence.

A developer can still require a human when an essential field is missing. I'd keep the teaching shop firmly in its simulator. Connecting generated operations to a real business database requires actual isolation, bounded permissions, time and cost limits, and stopping conditions. A prompt or a restricted namespace alone doesn't establish those boundaries.

What splitting the roles buys me

Week five also builds a research team on paper. Here's its division of labor.

RoleJob
PlannerOrder the research tasks.
ResearcherLook for evidence with the search tools.
WriterTurn that evidence into a report for the intended reader.
EditorRead the result against the brief and flag revisions.

An executor hands the relevant material from one role to the next. “Agent” needn't imply four different models. Give the same underlying model different instructions, evidence and tools and the researcher can have a very different job from the editor. The handoff specification matters at least as much as the job title.

Four roles can share one blind spot

If the researcher drops an awkward source, nobody downstream can recover it by agreeing enthusiastically. Specialization costs time, calls, and context lost between steps. I want a comparison that shows which errors actually fell after I split the work.

A customer's two dates

At Rotork I work as an inside sales engineer. A customer request can contain several dates that mean quite different things. For a first design of my own I'd like help drafting a reply I will read myself. Here's the entire invented inquiry.

Could you quote three electric actuators? We need them on site by November 20, 2026. Please send your quotation by October 2, 2026.

The supply voltage is missing. November 20 is what the customer wants, October 2 is when they need our reply, and nobody has checked availability. My first pass would ask for a draft. My second would compare it with the email on those very points. With ask() the requests might look like this.

# Pseudocode. The email variable holds the invented inquiry above.
rules = (
    "Ask for any missing power specification. "
    "Keep the quotation deadline separate from the requested delivery date. "
    "Only promise a delivery date the supplier has confirmed."
)

draft = ask(
    f"Draft a reply using these criteria.\n{rules}\n"
    f"Customer inquiry:\n{email}"
)
feedback = ask(
    f"Compare the inquiry and draft against these criteria.\n{rules}\n"
    f"Customer inquiry:\n{email}\n\nDraft:\n{draft}"
)
revised = ask(
    f"Revise using the feedback and keep the facts and criteria intact.\n{rules}\n"
    f"Customer inquiry:\n{email}\n\nDraft:\n{draft}\n\nFeedback:\n{feedback}"
)

I'm using the essay workflow with a different definition of a good answer. A review instruction describes the job. A separate set of deliberately faulty examples checks whether the reviewer can do it.

Bad draftWhat's in the emailWhat to fix
“We can deliver on November 20.”A requested date, no promise of supplyAcknowledge the request and check availability.
“We'll supply 380 V.”No voltage specifiedAsk for the supply specification.
“We'll quote by November 20.”October 2 is the quotation deadlinePut each date back with its own event.

A polite, fluent email can fail all three tests.

When a lookup or a calculation earns its place

Approved product documentation and delivery records could supply facts the email doesn't contain. Arithmetic deserves a real function. On a made-up cost of 700,000 won, a 30 percent gross margin means dividing cost by one minus the margin.

from decimal import Decimal, ROUND_HALF_UP

def calculate_price(cost: str, margin: str) -> str:
    c, m = Decimal(cost), Decimal(margin)
    if not c.is_finite() or not m.is_finite():
        raise ValueError("Both inputs must be finite numbers.")
    if c < 0 or not Decimal("0") <= m < Decimal("1"):
        raise ValueError("Cost or margin is outside its permitted range.")
    return str(
        (c / (1 - m)).quantize(Decimal("1"), rounding=ROUND_HALF_UP)
    )

print(calculate_price("700000", "0.30"))  # 1000000

The selling price in this example is one million won. Multiplying cost by 1.30 gives a markup instead. Rounding here is illustrative. Actual freight, tax, discounts, currency and company policy would need separate handling. To let the model use a pricing function I'd register it, validate the requested inputs, execute it and return the result. Both cost and margin need an approved source.

The model at my desk and the model in the program

Could I start a repository and design the application with a capable model? Yes. The distinction I kept losing was between the assistant helping me write the software and the model the finished application would call.

At development timeAt runtime
RequestHelp me build a draft reviewer.Draft a reply to this inquiry.
WorkDesign, implement, test and diagnoseRead the supplied business input.
ResultCode, prompts and testsAn analysis or a reply for review.

One underlying model could do both jobs. Its role, input and authority would change.

A brief I'd give my coding assistant

“Build a Python prototype with invented customer emails. Give me a one-call draft first. Add a reviewer that can see the inquiry and draft, then a reviser that can see the feedback. Show the strings passed at each step. Test swapped dates, an invented voltage and a delivery promise nobody authorized. Keep mail delivery and company systems outside the prototype.”

That's a brief I can actually test. Once the code exists, I still have to run it, look at its behavior and decide what to change.

What goes in the repository?

I'd start small enough that I can trace a request without a map.

inside-sales-assistant/
├── README.md         # purpose, limits and how to run the example
├── model_client.py   # the implementation of ask()
├── workflow.py       # hand the draft to the reviewer and reviser
└── tests/            # invented inquiries and expected behavior

A notebook works too. What matters is that tool calls, inputs and handoffs are explicit. Telling my coding assistant once to avoid guessing the voltage won't teach the deployed program that rule. Put it in the instructions and tests. Keep API keys and real customer correspondence out of the example. Planning the development in chat doesn't install a planner in the product, any more than asking for several code reviews creates a multi-agent application.

An experiment I could actually finish

Write the invented emails and expected results first. Keep the one-call draft as a baseline. Add review and revision, saving each handoff. Compare the two versions on the same cases, counting errors, human editing, time and cost. Try new date formats and a conflict between an email and its attachment. Add lookup or calculation only where a failure calls for it, then measure again.

A fixed workflow may be plenty. Real product selection would still need validated engineering criteria and approval to use company data. Drafting and sending also require different permissions. A customer's attachment supplies evidence to read, never authority to change those permissions.

What I want to remember

Each exercise gets easier to recall when I attach a question to it.

IdeaExerciseQuestion
ReflectionDraft, critique, revisionWhat can the reviser see?
Tool useClock, mock mail and searchWho executes the request and returns the result?
EvaluationPreferred-domain shareWhat did this particular score measure?
PlanningSunglasses shopWho chooses the next operation?
Multiple agentsA research teamWhat passes from one role to the next?

The smallest change is to make one answer useful to the next step. Search, planning and specialist roles are additions I can test when I need them. I came back to this course because a model can write a lot of code for me without settling what I should ask it to build, or how I'll know it works.

Close the notebook

Could I explain why three unrelated essays aren't a review cycle? Why the reviser needs both draft and comments? Who runs the tool? Why a respectable source domain can yield a useless report? Could I distinguish a fixed branch from planning, and the benefits of a second agent from the cost of a handoff? Most importantly, can I design a fair test of the sales reviewer and tell the development assistant apart from the deployed model? Answering with my own example is a better test than remembering the vocabulary.


My exercises came from Andrew Ng's Agentic AI course. Week two supplied Reflection in a Research Agent. In week three I revisited Turning Functions into Tools, Email Assistant Workflow, and Tool Use and Reflective Agents. Week four supplied the component-level domain evaluation, and week five the sunglasses shop and role-based research workflow. This is my reconstruction from saved exercises. My week-one notes were mostly an outline, so I've kept them out of the detailed account.

Another course notebook