Agentic AI Patterns

Course Content

Agentic AI Patterns

9 sections · 50 lessons

How can Agentic AI enhance customer service through personalization and prediction?


What you need to know

Personalisation sources

SourceExamplesHow it is fetched
Live account stateOrders, refunds, plan, entitlementsTools, at request time
PreferencesLanguage, channel, tone, accessibility needsLong-term memory (structured)
HistoryPast tickets and how they were solvedEpisodic memory, retrieved by similarity

Prediction

  • Intent classification routes to the right flow on the first message.
  • Risk scores (churn, escalation, frustration) change handling: a high-value customer with a third complaint this month goes straight to a senior agent.
  • Proactive outreach: a predicted delay triggers a message and an offer before the customer contacts support. This often gives the biggest satisfaction gain.

Prediction models are usually classic ML or small classifiers on structured data. The LLM agent consumes their scores; it does not guess them.

Guardrails

  • No account fact without a tool result.
  • Use only data the customer would expect you to use. Personalisation turns unsettling fast.
  • Say it is an AI, and make "talk to a person" one step away.
  • Escalate on low confidence, repeated failure or detected frustration.

Metrics

Containment rate, first-contact resolution, CSAT, reopen rate, and escalation quality: did the human receive a clear summary, or start from zero?

A real-life example

A food-delivery app's support agent:

  • A delivery-time model predicts an order will be 25 minutes late because the restaurant is backed up. Before the customer opens the app, the agent sends a message in Hindi (her saved preference): the new ETA and a Rs 50 coupon. She has had two late orders this month, so the risk score is high and the offer is applied automatically within policy.
  • When she later writes "the paneer was missing", the agent calls get_order (the item was on the order) and get_restaurant_flags (two similar reports today). It issues a refund to her UPI source within the Rs 300 autonomous limit and confirms the amount and time to credit.
  • If she writes angrily twice, the frustration signal escalates to a human with a three-line summary.

Proactive delay messages cut "where is my order?" contacts on late orders by about 40%, and the missing-item flow resolved most cases in under a minute.

Follow-up questions to expect

  • "How is prediction different from the LLM's reasoning?" — Predictions come from models trained on outcome data, with measurable accuracy. The LLM uses the scores to choose actions and words.
  • "What personal data should the agent use?" — Only what the task needs and the customer has agreed to, scoped to the logged-in customer by the tool layer.
  • "How do you measure personalisation?" — A/B test it against a non-personalised version on CSAT, resolution time and repeat contacts.