Introduction to AI Agents
Adel Nehme
VP of AI Curriculum, DataCamp
$$
$$
$$
$$
Thought: The model decides the next step based on the user prompt.
$$
$$
$$
$$
Action: The agent takes an action, by calling the tools at their disposal.
$$
$$
$$
$$
Observation: The model reflects on the response from the tool. Feeding into the next set of thoughts and actions.
$$
$$
$$
"I forgot to cancel my subscription and was accidentally billed. Help me get a refund."
Cycle | Thought | Action | Observation |
---|---|---|---|
1 | "I need to understand this customer's situation. Let me check their account details." | Access customer database and retrieve subscription history | Customer has premium plan, renewed 3 days ago for $99 |
Cycle | Thought | Action | Observation |
---|---|---|---|
1 | "I need to understand this customer's situation. Let me check their account details." | Access customer database and retrieve subscription history | Customer has premium plan, renewed 3 days ago for $99 |
2 | "The renewal is recent. I should check our refund policy for accidental renewals." | Query company policy database for refund rules | Policy allows full refunds within 7 days for accidental renewals |
Cycle | Thought | Action | Observation |
---|---|---|---|
1 | "I need to understand this customer's situation. Let me check their account details." | Access customer database and retrieve subscription history | Customer has premium plan, renewed 3 days ago for $99 |
2 | "The renewal is recent. I should check our refund policy for accidental renewals." | Query company policy database for refund rules | Policy allows full refunds within 7 days for accidental renewals |
3 | "Great, they qualify! Now I need to process the refund." | Initiate refund transaction through payment system | Refund of $99 successfully processed |
Cycle | Thought | Action | Observation |
---|---|---|---|
1 | "I need to understand this customer's situation. Let me check their account details." | Access customer database and retrieve subscription history | Customer has premium plan, renewed 3 days ago for $99 |
2 | "The renewal is recent. I should check our refund policy for accidental renewals." | Query company policy database for refund rules | Policy allows full refunds within 7 days for accidental renewals |
3 | "Great, they qualify! Now I need to process the refund." | Initiate refund transaction through payment system | Refund of $99 successfully processed |
4 | "Refund complete. I should update the customer and cancel their subscription to prevent future charges." | Send confirmation email and update subscription status to 'cancelled' | Email sent, subscription cancelled, ticket can be closed |
$$
$$
$$
Final action: Ticket now can be closed
Introduction to AI Agents