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

Support: Recharge & Gorgias Guide

Tomek Nowinski
01.05.2025

Share this article

Tomek Nowinski
01.05.2025

Ingredients

This policy utilizes the following systems: Recharge, 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.

“Swap subscription product” ticket type explained

In customer support, the “Swap subscription product” ticket type refers to requests from customers who wish to change the product they receive in their subscription service. This could be due to a variety of reasons, such as wanting to try a different product, dissatisfaction with the current product, or a change in personal needs or preferences. Handling these requests efficiently is crucial for maintaining customer satisfaction and loyalty, as it directly impacts the customer experience with subscription-based businesses.

Which Platforms does this AI policy work on?

This AI policy is applicable on Recharge, Gorgias, and Kodif. Moreover, Kodif integrates seamlessly with all other major platforms, ensuring flexibility and adaptability in various customer support ecosystems.

When should I use this policy?

This policy should be employed when a customer requires a replacement shipment due to issues such as a lost, damaged, or incorrect shipment. The policy’s logic is structured to handle these scenarios efficiently, ensuring a smooth resolution for the customer.

  1. Ask for the user’s email address
    a. Use @get_recharge_account_details(email: str) to verify if the user exists in Recharge.
    b. Ask for the order number of the shipment in question.

  2. Retrieve and Verify Order Details
    a. Use @recharge_order_details(order_id: str) to fetch the order details.
    b. Confirm the shipping status (e.g., “Delivered,” “In Transit,” “Out for Delivery”).
    c. Review the items in the order to verify what needs to be reshipped.

  3. Check Reshipment Eligibility
    a. Confirm the customer’s issue:

    1. Lost shipment.
    2. Damaged item(s).
    3. Incorrect item(s).
      b. Use @check_reshipment_eligibility(order_id: str) to ensure the order qualifies for a reshipment.
      c. If the order is not eligible, use the macro: “Unfortunately, your order is not eligible for a reshipment due to [specific reason]. Please let us know if there’s anything else we can assist you with.”
  4. Confirm Reshipment Details
    a. Ask the customer to confirm the reshipment address.
    b. Use @get_recharge_account_details(email: str) to retrieve the saved address, or ask the customer to provide a new address.
    c. If a new address is provided, use @update_recharge_address(address_id: str, new_address: json) to update the shipping address.

  5. Create a Reshipment Order
    a. Use @recharge_order_details(order_id: str) to gather the details of the original order.
    b. Use @create_recharge_order(items: list, address: json, user_email: str) to create a replacement order with the same items.
    c. Use @set_order_to_paid(order_id: str) to mark the new order as paid, ensuring the customer is not charged again.
    d. If applicable, use @set_discount_to_order(order_id: str, percent: int) to apply a 100% discount.

  6. Notify the Customer
    Use the macro: “Your replacement order has been processed. You’ll receive an email with tracking details shortly.”

Policy logic

Use this policy when a customer needs a replacement shipment due to issues such as a lost, damaged, or incorrect shipment. The logic is straightforward and designed to streamline the process, ensuring customer satisfaction and operational efficiency.

Example policy

Use the exact policy content you can find in the library.

  1. Ask for the user’s email address
    a. Use @get_recharge_account_details(email: str) to check if the user with that email address exists in Recharge.
    b. Ask for the order number of the shipment in question.

  2. Retrieve and Verify Order Details
    a. Use @recharge_order_details(order_id: str) to fetch the order details.
    b. Confirm the shipping status (e.g., “Delivered,” “In Transit,” “Out for Delivery”).
    c. Review the items in the order to verify what needs to be reshipped.

  3. Check Reshipment Eligibility
    a. Confirm the customer’s issue:

    1. Lost shipment.
    2. Damaged item(s).
    3. Incorrect item(s).
      b. Use @check_reshipment_eligibility(order_id: str) to ensure the order qualifies for a reshipment.
      c. If the order is not eligible, use the macro: “Unfortunately, your order is not eligible for a reshipment due to [specific reason]. Please let us know if there’s anything else we can assist you with.”
  4. Confirm Reshipment Details
    a. Ask the customer to confirm the reshipment address.
    b. Use @get_recharge_account_details(email: str) to retrieve the saved address, or ask the customer to provide a new address.
    c. If a new address is provided, use @update_recharge_address(address_id: str, new_address: json) to update the shipping address.

  5. Create a Reshipment Order
    a. Use @recharge_order_details(order_id: str) to gather the details of the original order.
    b. Use @create_recharge_order(items: list, address: json, user_email: str) to create a replacement order with the same items.
    c. Use @set_order_to_paid(order_id: str) to mark the new order as paid, ensuring the customer is not charged again.
    d. If applicable, use @set_discount_to_order(order_id: str, percent: int) to apply a 100% discount.

  6. Notify the Customer
    Use the macro: “Your replacement order has been processed. You’ll receive an email with tracking details shortly.”

Explore more AI policies

Share this article

Related Articles

Go the extra mile,
without lifting a finger.