UChat Official

Introduction

In this guide, we explore how to implement an abandoned cart recovery flow within Shopify using uChat.

After successfully configuring the order confirmation flow via inbound webhooks, the next step is to set up a system that detects abandoned carts, prompts customers to complete their purchase, and ultimately increases conversion rates.

This process involves creating additional webhooks, capturing relevant data, and automating follow-up messages based on user actions.

Overview of the Abandoned Cart Setup

The setup process closely mirrors the order confirmation flow, with key differences focused on draft order creation and timed follow-ups. The main components include:

  • Creating a webhook for draft order events

  • Capturing user data from webhook payloads

  • Waiting for a specified period before checking payment status

  • Sending reminders with urgency and call-to-action

Step-by-Step Implementation

Step

Action

Details

1

Create a new webhook in Shopify

Name it "Draft Order Creation"

2

Set webhook URL

Copy from uChat's inbound webhook setup

3

Configure webhook format

JSON, latest version

4

Save and activate webhook

Ensures Shopify notifies uChat upon draft order creation

5

Integrate webhook with uChat

Listen for payloads in the inbound webhook

6

Map data fields

Focus on user ID in the note section

7

Set up flow in uChat

Triggered when draft order is created

8

Implement delay

Wait for a customizable period (e.g., 10 minutes)

9

Check payment status

Use tags like "order status paid"

10

Send follow-up reminders

If unpaid, send second message with urgency

Key Data Handling and Automation

  • Webhook Payload Mapping

    • Extract user ID from the note section of the draft order JSON payload

    • Use JSON path to locate the user identifier for personalized follow-up

  • Follow-up Logic

    • After initial delay, verify if the user has paid (via tags)

    • If paid, end flow; if unpaid, send a reminder with a call-to-action like "Save My Card"

    • Set a second delay (e.g., 1 hour) for additional reminders if necessary

  • Messaging Strategy

    • Use scarcity tactics ("Items will not stay in your cart forever")

    • Encourage immediate action with clear CTA buttons

Finalizing and Activating the Flow

  • Activate the webhook in uChat by selecting the appropriate subflow (e.g., "Shopify Abandoned Cart Flow")

  • Test the setup by adding items to cart, proceeding to checkout, and observing webhook triggers and follow-up messages

  • Adjust timing and messaging based on customer behavior and store preferences

Conclusion

By following these steps, you can effectively recover abandoned carts, boost conversions, and enhance customer engagement within your Shopify store.

The process leverages webhooks, data mapping, and timed automations to create a seamless recovery experience.

In the next tutorial, we will demonstrate how to set up an order fulfillment flow directly within uChat, further streamlining your customer journey.