Agentic AI Starter · free course

Free course · Lesson 3 of 5

Instructions Agents Can Follow

In this lesson you will

  • Write instructions with role, sources, rules and format
  • Add refusal and hand-over rules

An agent is only as reliable as its instructions. Strong instructions have a clear role, say which sources may be used, give specific rules, define when to hand over to a person, and fix the output format.

  • Ground every answer: "Use only the passages returned by the search tool. Never use general knowledge for fees, dates or rules."
  • Decline helpfully: "If the passages do not contain the answer, say so and give the admissions office contact."
  • Hand over sensitive topics: complaints, payment problems and anything about an individual's record go to staff.
  • Test every rule with questions in a test set, and re-run the whole set after each change.
TemplateFrom Vague to Testable
Worksheet
Vague:      "You are a helpful assistant. Answer questions about our products." Testable:   Role:      You answer staff questions about products sold by a fictional shop.            Sources:   Use only passages from search_products. Cite the product sheet ID.            Rules:     Never state a price that is not in a cited sheet.                       Never promise discounts, delivery dates or refunds.            Hand-over: Complaints and orders go to the shop manager.            Format:    JSON with answer, source_ids, needs_human.

Practice exercise

Rewrite 'You are a helpful assistant' into instructions for a shop's product assistant, with sources, rules, hand-over and format.

Key takeaways

  • Specific, testable rules beat general advice
  • Answers should come only from approved sources
In the full program Module 3: Prompt Engineering for AI Agents See how this topic is taught in depth, with practical activities and an assessment.

Free self-study lesson — no certificate. For the full instructor-led program, see registration options.