Join Online Event for Subscription E-commerce: Learn How Dollar Shave Club and Hallo Collar Resolved 75% Chat Tickets with AI.

Returns with Loop & Gorgias AI

Tomek Nowinski
01.05.2025

Share this article

Tomek Nowinski
01.05.2025

Ingredients

Loop Returns, 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.

“Return order for refund or replacement” ticket type explained

In customer support, the “Return order for refund or replacement” ticket type is a critical aspect of managing post-purchase customer interactions. This process involves handling customer requests to return products they are dissatisfied with or those that are defective, and subsequently processing a refund or initiating a replacement. Efficient handling of such requests is crucial for maintaining customer satisfaction and loyalty, as it directly impacts the customer’s perception of the brand’s reliability and customer service quality. By automating this process, businesses can ensure a seamless experience for customers, reduce the workload on support teams, and minimize errors associated with manual processing.

Which Platforms does this AI policy work on?

This AI policy is designed to work seamlessly on Loop Returns, Gorgias, and Kodif. However, Kodif integrates with all other major platforms, ensuring you can leverage this powerful toolset across your existing systems to enhance customer support operations.

When should I use this policy?

Use this policy when customers want a refund.

Describe the logic

Type @ to view available tools, use # to reference policies, and add contextual data with $. You can also edit the context in the test screen.

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

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

  3. Check Refund Eligibility:
    a. Use @shopify_order_details to check the status and eligibility of the selected order for a refund.
    b. If the order is eligible for a refund, verify the return and refund conditions (e.g., within the return window, product condition, etc.).
    c. If the order is not eligible, inform the user that the order is outside the refund window or does not meet the conditions for a refund, and provide alternative options (e.g., store credit, exchange).

  4. Initiate Refund Process
    a. If the order meets the refund criteria, ask the user to confirm their request for a refund.
    b. Use @shopify_issue_refund to initiate the refund process in Shopify.
    c. Inform the user that the refund process has started, and provide them with an estimated timeline for when the funds will be credited back to their payment method (typically within 3-5 business days).

  5. Notify the User
    a. Inform the user in the chat that their refund has been successfully initiated.
    b. Shopify will send a confirmation email to the user regarding the refund status and details.

  6. Refund Follow-Up
    a. Advise the user to check their bank or payment provider for any updates on the refund processing timeline.
    b. If the user has questions regarding the refund status after the estimated time frame, encourage them to reach out for further assistance.

  7. Escalation
    a. If the refund cannot be processed or if there are any issues, route the request to an agent or create a ticket for further investigation.
    b. If the user prefers a store credit or exchange instead of a refund, offer these options and use the appropriate tools to process them.

Example policy

Use the exact policy content you can find in the library: When should we use this policy?

Use this policy when customers want a refund.

Describe the logic

Type @ to view available tools, use # to reference policies, and add contextual data with $. You can also edit the context in the test screen.

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

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

  3. Check Refund Eligibility:
    a. Use @shopify_order_details to check the status and eligibility of the selected order for a refund.
    b. If the order is eligible for a refund, verify the return and refund conditions (e.g., within the return window, product condition, etc.).
    c. If the order is not eligible, inform the user that the order is outside the refund window or does not meet the conditions for a refund, and provide alternative options (e.g., store credit, exchange).

  4. Initiate Refund Process
    a. If the order meets the refund criteria, ask the user to confirm their request for a refund.
    b. Use @shopify_issue_refund to initiate the refund process in Shopify.
    c. Inform the user that the refund process has started, and provide them with an estimated timeline for when the funds will be credited back to their payment method (typically within 3-5 business days).

  5. Notify the User
    a. Inform the user in the chat that their refund has been successfully initiated.
    b. Shopify will send a confirmation email to the user regarding the refund status and details.

  6. Refund Follow-Up
    a. Advise the user to check their bank or payment provider for any updates on the refund processing timeline.
    b. If the user has questions regarding the refund status after the estimated time frame, encourage them to reach out for further assistance.

  7. Escalation
    a. If the refund cannot be processed or if there are any issues, route the request to an agent or create a ticket for further investigation.
    b. If the user prefers a store credit or exchange instead of a refund, offer these options and use the appropriate tools to process them.

Explore more AI policies

Share this article

Related Articles

Go the extra mile,
without lifting a finger.