Join Exclusive Live Event in San Francisco: Unlocking AI Impacts for Digitally Native Brands

Support: Shopify & Gorgias Guide

Tomek Nowinski
01.05.2025

Share this article

Tomek Nowinski
01.05.2025

Ingredients

Shopify, Gorgias, and Kodif

What are AI Policies?

ai policies for customer support

At Kodif, we’re excited to announce the launch of Policies—a powerful, dynamic solution designed to revolutionize the way CX managers handle customer support. Unlike traditional flows, which are rigid and complex, Policies empower non-technical users to create and manage customer interactions with ease. Written in natural language, Policies make it simple to define and refine customer experiences without needing to rely on complicated flowcharts or scripting. This approach is not only user-friendly but also self-serve, enabling CX teams to quickly translate existing Standard Operating Procedures (SOPs) into automation, saving valuable time and resources.

The flexibility of Kodif Policies ensures that businesses can offer personalized, context-driven support while continuously improving customer experiences. With Policies, you can experiment with different strategies to optimize outcomes such as CSAT, revenue, and retention—all without the need to rebuild complex workflows. Whether it’s automating routine interactions or testing new approaches for high-stakes scenarios, Policies provide a scalable, adaptable solution that aligns with your business goals. While flows still have their place in sensitive, high-risk situations, Policies offer an agile alternative that helps businesses innovate faster and deliver exceptional, tailored experiences at scale.

“Get order info” ticket type explained

In customer support, “Get order info” tickets are requests from customers seeking information about their orders. These can include inquiries about order status, tracking details, shipment dates, or any changes made to their purchase. Efficient handling of these tickets is essential for maintaining customer satisfaction, as prompt and accurate responses build trust and enhance the overall shopping experience.

Which Platforms does this AI policy work on?

This AI policy is specifically designed to work on Shopify, Gorgias, and Kodif. Notably, Kodif integrates seamlessly with all other major platforms, providing a versatile solution for diverse e-commerce environments.

When should I use this policy?

This policy should be utilized when customers inquire about the status of their orders. It is particularly effective for managing WISMO (Where Is My Order) inquiries, ensuring customers receive up-to-date information about their purchases. The policy logic follows a structured approach:

  1. Ask for the user’s email address.
  2. Use @get_shopify_account_details tool to check if the user with that email address exists in Shopify.
  3. If the email address was not found, ask for a valid email address.
  4. If the email address is still not found, route it to an agent for further investigation.

  5. Display Recent Orders:

  6. Use @get_shopify_orders to retrieve the user’s recent orders.
  7. Display the list of recent orders and ask the user which specific order they would like to inquire about.
  8. If the order was not found, route to an agent for further investigation.

  9. Check Order Status:

  10. For the selected order, retrieve the shipping status using @shopify_order_details(order_id: str).
  11. If “Approved”, inform that the order was approved and is waiting to be processed.
  12. If “Processing”, inform that the order was processed and is waiting to be shipped.
  13. If “Pending Shipment”, inform that the order is pending shipment and provide a shipment date.
  14. If “Shipped”, inform that the order was shipped and is waiting to be in transit and provide the tracking number.
  15. If ”In transit”, use the tool @shopify_order_details to check if the order is within the estimated delivery date. If yes, inform the order is in transit and provide the expected delivery date.
  16. If no, inform the customer that the route is delayed and that the request will be transferred to an agent for investigation.
  17. If “Delivered”, inform that the order was delivered and confirm with the customer if the order was delivered.
  18. If the order was not delivered, route to an agent or create a ticket to escalate for further investigation.
  19. If “Canceled”, inform that the order was already canceled.

Policy logic

This policy should be used when customers inquire about the status of their orders, particularly addressing WISMO concerns. The policy logic involves:

  1. Ask for the user’s email address.
  2. Use @get_shopify_account_details tool to check if the user with that email address exists in Shopify.
  3. If the email address was not found, ask for a valid email address.
  4. If the email address is still not found, route it to an agent for further investigation.

  5. Display Recent Orders:

  6. Use @get_shopify_orders to retrieve the user’s recent orders.
  7. Display the list of recent orders and ask the user which specific order they would like to inquire about.
  8. If the order was not found, route to an agent for further investigation.

  9. Check Order Status:

  10. For the selected order, retrieve the shipping status using @shopify_order_details(order_id: str).
  11. If “Approved”, inform that the order was approved and is waiting to be processed.
  12. If “Processing”, inform that the order was processed and is waiting to be shipped.
  13. If “Pending Shipment”, inform that the order is pending shipment and provide a shipment date.
  14. If “Shipped”, inform that the order was shipped and is waiting to be in transit and provide the tracking number.
  15. If ”In transit”, use the tool @shopify_order_details to check if the order is within the estimated delivery date. If yes, inform the order is in transit and provide the expected delivery date.
  16. If no, inform the customer that the route is delayed and that the request will be transferred to an agent for investigation.
  17. If “Delivered”, inform that the order was delivered and confirm with the customer if the order was delivered.
  18. If the order was not delivered, route to an agent or create a ticket to escalate for further investigation.
  19. If “Canceled”, inform that the order was already canceled.

Example policy

This policy is activated when customers inquire about the status of their orders, specifically addressing WISMO concerns. The logic follows a structured approach, utilizing tools like @get_shopify_account_details, @get_shopify_orders, and @shopify_order_details to efficiently gather and relay order information. Ensure seamless integration with Shopify and Gorgias by replacing respective commands as needed.

Explore more AI policies

Share this article

Related Articles

Go the extra mile,
without lifting a finger.