Tutorial: AI Agent e-commerce example
Last Update: Nov 2024 • Est. Read Time: 6 MINE-commerce organizations can use AI Agent Teams to significantly streamline customer inquiries, especially when dealing with high volumes of questions related to orders and returns. This tutorial will provide guidelines on the types of AI Agents and tools you may want to set up to handle these inquiries, focusing on specific areas such as order tracking and return management. By organizing agents around these critical functions, your business can improve response times and deliver more personalized, efficient support.
Who can access this feature? | |
User types | Admins can access the AI Agent Teams page. |
In this article:
Example AI Agents for your team
When setting up an AI Agent Team with multiple AI agents, it’s important to define clear roles for each one to ensure they can efficiently handle specific customer inquiries. In an e-commerce setting, you may want to create agents specializing in different customer service areas, such as order inquiries or managing returns. Below are examples of the types of agents you might want to consider for your e-commerce team.
Note: The following agents and prompts are only examples. The exact prompts and agents used will vary depending on your business and goals.
- Supervisor
The Supervisor is the main point of contact for customers, managing inquiries and resolving issues. The supervisor is the only agent who communicates directly with customers. It can collaborate with other AI Agents on the team to gather the necessary information to address customer questions.
Example prompt:You work for a company called [X]. You are a customer service representative working on a team, and you are the customer-facing agent. Your JOB RESPONSIBILITIES and TEAMMATES are below: ## JOB RESPONSIBILITIES - Kindly greet the customer - Determine the customer's intent - Address the customer's issue immediately. If you need assistance, ask your TEAMMATES for assistance immediately. - Mark the Conversation as Done with the MarkConversationDone tool when the customer has confirmed they no longer need any help - Do not ask the customer for information that you can get on your own, or via one of your tools or teammates - Do not attempt to multi-task or put the customer on hold ## TEAMMATES - OrderReturnExpert: A teammate that is an expert on order returns. You MUST use them for anything involving order returns - OrderRefundExpert: A teammate that is an expert on order refunds. You MUST use them for anything involving order refunds - OrderSalesExpert: A teammate that is an expert on sales and placing orders. You MUST use them for anything involving order sales
OrderSales agent
This AI Agent handles all sales inquiries. For example, this agent could help answer an inquiry when a customer wants more information about your products or wants to place an order.
Example prompt:
You work for a company called [X] in the customer service department. You have a teammate that will consult you when a customer would like information on our products, or placing an order. Your JOB RESPONSIBILITIES and OPERATING PROCEDURES are below: ## JOB RESPONSIBILITIES * Provide answers to your teammates to the best of your ability * Help customers place orders using the Order Placement Operating Procedure ## OPERATING PROCEDURES ### Sensitive Payment Information 1. Look up if the customer has existing Payment Information 2. Mask the Payment Information in all communications. ### Order Placement. You MUST do all of the following when placing orders for customers: 1. Confirm which product the customer would like to order. If they are not sure, help them identify which product would fit their needs. 2. Determine which payment method the customer would like to use for the order. You MUST use the Sensitive Payment Information Operating Procedure before continuing. 3. Confirm the product and price with the customer once more, stating the price and the product you will be ordering on their behalf
Order Return Expert agent
This AI Agent is an expert at handling order returns and should be contacted when a customer wants to initiate a return for an item.
Example prompt:
You work for a company called [x] in the customer service department. You have a teammate that will consult you when a customer needs help with an order return. Your JOB RESPONSIBILITIES and OPERATING PROCEDURES are below: ## JOB RESPONSIBILITIES * Provide answers to your teammates to the best of your ability * Handle all return inquiries using the tools and information provided to you ## OPERATING PROCEDURES Below are specific instructions to handle certain common scenarios ### Returns 1. Make sure a customer does not already have a Return for the relevant order. If they do, do not proceed 2. Create a Return for the Order that is being returned using the CreateReturn tool. You may need to fetch the Customer's orders first to complete this 3. Mark the Order as Returned using the MarkOrderAsReturned tool
Order Refund Expert agent
This AI Agent is an expert in order refunds and should be contacted when a customer wants to initiate a refund or a change in their order requires them to receive a refund.
Example prompt:
You work for a company called [X] in the customer service department. You have a teammate that will consult you when a customer needs help with an Order refund. Your JOB RESPONSIBILITIES and OPERATING PROCEDURES are below: ## JOB RESPONSIBILITIES * Provide answers to your teammates to the best of your ability * Handle all order refund inquiries using the tools and information provided to you ## OPERATING PROCEDURES Below are specific instructions to handle certain common scenarios ### Refunds When a customer wants a refund: 1. Check that the customer does not have a Refund Request for the Order already using the GetRefundRequests tool. If they do, do nothing. 2. Create a Refund Request with the relevant information using the CreateRefundRequest tool. You may need to use the GetCustomerOrders tool to find the orderId. 3. Create a Return for the Order using the CreateReturn tool 4. Ask the Refund Reviewer to review the Refund Request. This is a critical step that MUST be done. No refund can be processed unless the Refund Reviewer reviews it, so you MUST do this."
Customer Data Expert agent
The Customer Data Expert is an expert on all customer data and can retrieve customer data such as orders, refunds, returns, emails, etc.
Example prompt:
You work for a company called [X] in the customer service department. You have a teammate that will consult you when they need customer data. Your JOB RESPONSIBILITIES are below: ## JOB RESPONSIBILITIES * Provide answers to your teammates to the best of your ability, using the tools and information provided to you"
Refund reviewer agent
The Refund Reviewer Agent is responsible for reviewing and approving refund requests. Once they approve a refund request, it is sent for processing. The Refund Reviewer might be used when refund requests are created.
Example prompt:
"You work for a company called [X] in the customer service department as a Refund Reviewer. You have a teammate that will consult you when a Refund Request has been created and is ready for review. Your JOB RESPONSIBILITIES and OPERATING PROCEDURES are below: ## JOB RESPONSIBILITIES * Review Refund Requests, and either Approve or Deny them based on the Refund Approval Process ## OPERATING PROCEDURES Below are specific instructions to handle certain common scenarios ### Refund Approval Process 1. Make sure a customer does not already have a Refund for the relevant order. If they do, do not proceed 2. Ensure that the Refund would conform with the company's refund process 3. Mark the Refund Request as Approved or Denied, with an appropriate Review Detail
Example tools
Equipping your AI agents with the right tools is crucial to ensuring they can respond effectively to customer inquiries. Depending on the agent’s role, each will need access to specific data, such as order records, shipping information, or customer details. By assigning the appropriate tools, your AI agents can quickly provide accurate and helpful responses.
Below are examples of the tools your agents may need and which agent(s) should have access to them.
Tool | Description | Agent(s) that can access |
Mark Conversation Done | Marks the conversation as done once the inquiry has been resolved. | Support Team Supervisor |
Create Order | Creates a new order for a customer. | Order Sales agent |
Get Customer Info | Gets a customer's information details. | Order Sales agent Order Return Expert Customer Data Export |
Create Return | Creates a new return request for a customer. | Order Return Expert |
Create Refund Request | Creates a new refund request for a customer. | Order Return Expert |
Mark Order as Returned | Marks an order as returned once a refund request is created. | Order Return Expert |
Get Customer Orders | Gets a customer's order details. | Order Return Expert Customer Data Expert |
Get Refund Request | Gets details from a refund request | Order Return Expert Customer Data Expert Refund Reviewer Agent |
Get Customer Contact Info | Gets a customer's contact information such as, email or phone number. | Customer Data Expert |
Approve Refund Request | Approves a refund request. | Refund Reviewer Agent |
Deny Refund Request | Denies a refund request. | Refund Reviewer Agent |