Kaizen 245 - Real Time Signal Alerts for High-Value Abandoned Checkouts

Kaizen 245 - Real Time Signal Alerts for High-Value Abandoned Checkouts



Howdy, Tech Wizards!

Welcome back to another week of Kaizen.

In this post, we will build a real-time abandoned checkout notification system using Stripe, Zoho CRM Functions, Sales Signals, and Widgets.

When a customer abandons a high-value purchase, Zoho CRM instantly notifies the record owner through a Signal. Selecting the Signal opens a widget that displays checkout details and direct links to the associated products, enabling sales teams to engage with customers while purchase intent is still fresh.

Business Scenario

Businesses that sell high-value products often lose potential revenue when customers abandon the checkout process before completing a purchase. Although the products added to the cart clearly indicate purchase intent, sales teams often discover abandoned purchases too late through reports or manual reviews, reducing the chances of recovering the opportunity.

Solution

To address this challenge, we will use Stripe Checkout events together with Zoho CRM Functions, Sales Signals, and Widgets.

When a Stripe Checkout Session expires without a successful purchase, Stripe sends a webhook event to a Zoho CRM Standalone Function. The function extracts checkout details from the event payload and invokes the Signals Integration Task to generate a real-time notification associated with the customer record.

When the user selects the Signal, a widget opens and displays the checkout details, including the cart value, checkout timeline, and abandoned products. The widget also provides direct navigation to the corresponding product records in Zoho CRM.

This enables sales teams to quickly identify abandoned high-value purchases and take timely action.

Prerequisites

Before proceeding, ensure the following components are available:
  1. A Stripe account with Checkout configured.
  2. An e-commerce application that creates a Stripe Checkout Session when customers proceed to checkout.
  3. Cart details, including product names and quantities, stored as metadata when creating the Checkout Session.
  4. A Zoho CRM Standalone Function with REST API access enabled. We will code this function in the upcoming steps. 
  5. A Stripe webhook configured for the checkout.session.expired event, with the Zoho CRM Standalone Function’s REST API endpoint set as the destination URL.
  6. Product records available in the Zoho CRM Products module.
  7. Customer records available in the Zoho CRM Contacts module.

I. Create a CRM Sales Signals

1. Go to Setup > Experience Centre > Signals and click Create New Signal. 
2. Provide a label for the Signal. When the label is entered, Zoho CRM automatically generates a namespace for the Signal.
Make a note of this namespace. We will use it later while invoking the Signals API.
3. Configure the Signals using the following settings:
  1. Service: Stripe
  2. Trigger Type: API
  3. View Type: Default
4. Click Save. 


II. Build the Standalone Function

Stripe sends the checkout expiration event to the Standalone Function through the configured webhook endpoint.

The event payload is available in the crmAPIRequest parameter.

1. From the event object, extract the following details:
  1. Customer email address
  2. Checkout Session creation time
  3. Checkout Session expiration time
  4. Cart total amount
  5. Cart item metadata
payload = crmAPIRequest.get("body");
sessionData = payload.get("data").get("object");
amountTotal = sessionData.get("amount_total");
customerEmail = sessionData.get("customer_email");
metadataMap = sessionData.get("metadata");
metadata = metadataMap.get("cart_items");
createdTime = sessionData.get("created");
expiresAt = sessionData.get("expires_at");

2. Add a validation step to generate a Signal only when the cart value exceeds USD 50,000.

if(amount_Total > 50000) {

//Construct Signals Payload
}

3. Construct the Signals API payload using the extracted values and the Signal namespace created earlier. Set the open_in property to popup so that the Signal can open an associated widget.

For this implementation, pass the cart metadata in the data object of the Signal payload so that it can be accessed by the widget during page load.

4. Use the Deluge Integration Task to invoke the Signal. 

resp = zoho.crm.raiseSignal(signalMap);

III. Build the Signals Widget

1. Create a new widget project in your local using Zoho CLI. 
2. When the widget loads, Zoho CRM passes the Signal payload through the on PageLoad event.
3. Convert the Unix timestamps into a readable date and time format.
4. Display the checkout start time, expiration time, cart value, and cart items in a structured table.
5. Use the product names received through the metadata to query the Products module using COQL and retrieve the corresponding Product IDs.
6. Embed a redirection link to the product record pages using the record IDs. 

This allows sales representatives to quickly access product information while following up with the customer.

Info
Check out the crm-kaizen GitHub repository for the Signals Widget code. 

IV. Upload the Widget and Associate it with the Signal

1. Follow the widget help guide to Validate and pack the widget. 
2. Go to Setup > Developer Hub > Widget and click Create New Widget. 
3. Configure the widget and select Signals as the widget type. 
4. Upload the packaged widget and click Save.


5. Next, navigate to Experience Centre > Signals > Manage Signals and open the Stripe checkout Signal created earlier.
6. Update the Signal view type to Widget and associate the uploaded widget.
7. Click Update.


Try it Out! 

Create a Stripe Checkout Session using the Stripe API and allow it to expire without completing the purchase.


When the Checkout Session expires:

1. Stripe sends the webhook event to the Standalone Function.
2. The function invokes the Signals API and generates a Signal for the record owner.
3. Selecting the Signal opens the widget.
4. The widget displays the cart value, checkout timeline, and abandoned products with direct links to their CRM records.



This enables the record owner to quickly review the abandoned purchase and reach out to the customer.

The Zoho CRM mobile application also delivers the Signal as a push notification, ensuring that salespeople are alerted even when they are away from the web interface.

Hope you found this post useful. 

We will circle back at you with a different topic next week. 

If you have questions or suggestions, leave a comment below or write to us at support@zohocrm.com.

On to better building!

------------------------------------------------------------------------------
------------------------------------------------------------------------------
    • Sticky Posts

    • Announcing the new SKILL.md for Zoho CRM and the updated OAS repository!

      We are introducing a new zoho-crm skill to make working with Zoho CRM Developer tools (like APIs, functions, widgets, client scripts, queries etc) easier and faster, with the help of AI in your preferred AI harness like Claude Code, Codex, Cursor, VSCode
    • Kaizen #261 : Using Zoho CRM Skill to generate complex COQL queries

      Hello everyone, In the previous Kaizen posts, we introduced the zoho-crm SKILL.md and discussed how it can help you when you are working with Zoho CRM APIs and Client Script. In this Kaizen, we will focus on using the Zoho CRM `SKILL.md` with GitHub Copilot
    • Kaizen #256 - Build an Arrival Readiness Web Tab in Zoho CRM

      Hi everyone! Welcome back to the Kaizen series! In the post, we discuss a use case in hospitality industry: how an Arrival Readiness web tab widget can be used to let reception staff identify and resolve issues before arrival of guests. Use case In the
    • Kaizen #198: Using Client Script for Custom Validation in Blueprint

      Nearing 200th Kaizen Post – 1 More to the Big Two-Oh-Oh! Do you have any questions, suggestions, or topics you would like us to cover in future posts? Your insights and suggestions help us shape future content and make this series better for everyone.
    • Kaizen #226: Using ZRC in Client Script

      Hello everyone! Welcome to another week of Kaizen. In today's post, lets see what is ZRC (Zoho Request Client) and how we can use ZRC methods in Client Script to get inputs from a Salesperson and update the Lead status with a single button click. In this
    • Recent Topics

    • Passing the CRM

      Hi, I am hoping someone can help. I have a zoho form that has a CRM lookup field. I was hoping to send this to my publicly to clients via a text message and the form then attaches the signed form back to the custom module. This work absolutely fine when
    • I want to test some payment subscription with a test credit card from stripe

      I have a test customer and place https://stripe.com/docs/testing#international-cards test credit card number to the Add New Card in subscription.zoho customer page. After I added, the test card was declined. Am I missing something?
    • Trigger a Workflow Function if an Attachment (Related List) has been added

      Hello, I have a Case Module with a related list which is Attachment. I want to trigger a workflow if I added an attachment. I've seen some topics about this in zoho community that was posted few months ago and based on the answers, there is no trigger
    • Strengthen your account security with Password Policy

      Still using the same password for all your accounts? Or perhaps your password is easy to guess or follows a predictable pattern? If so, your account could be at risk. Once someone gets hold of a password that you reuse, they could potentially gain access
    • Expanding sales, marketing, and support capabilities in Zoho CRM Plus 3.0

      Hey everyone, It's been more than 10 years since we launched Zoho CRM Plus back in 2014. This is quite a milestone, and we've come a long way in empowering you with everything you need to offer an exceptional customer experience. On that note, we expanded
    • Messages do not open and I cannot reply to messages in Zohodesk

      Hi, this is an unusual behaviour. I cannot reply to messages: Accessing a draft message - runs endlessly. Sending Emails fail:
    • Zoho CRM calendar merge with outlook

      Hi Zoho team! I did the steps for syncing the zoho CRM calendar with outlook. Everything works well as long as the user creates meetings inside the newly created Zoho CRM calendar in outlook, but I need a way to also display the meetings which are received
    • Introducing PRM: Build, manage, and scale your partner ecosystem

      Growing a partner ecosystem is a good problem to have. What starts as a handful of partners can quickly turn into a maze of spreadsheets, emails, and disconnected processes. More partners mean more opportunities, greater reach, and new ways to grow
    • Duplicate Record Creation

      Hello Team, I would like to check whether there are any options available in Zoho FSM to prevent duplicate record creation in the following modules: Assets Companies Contacts Ideally, we would like the system to check for existing records before allowing
    • Live connection to DS files in Zoho Creator / ChatGPT

      As an idea, we are using ChatGPT to build with Zoho Creator (outside of Zia), which is works brilliantly to assist write deluge, provide test suggesitons etc. Currently we are uploading the DS files which are very point in time, it would be great to have
    • Zoho Forms - Feature Request - Embed iFrame or Dynaic URLs in Description fields

      Hi Zoho Forms team, I'm working with a client who uses Zoho Forms internally to collect information over the phone from potential work placement candidates. At the end of the form, the candidate needs to be booked in for an induction, which we've configured
    • New in Office Integrator: Add text, diagrams, and drawings to your spreadsheet

      Hi users, We are pleased to introduce the Shapes feature in Zoho Office Integrator's spreadsheet editor. It lets users create visual elements; including simple shapes, text boxes, freehand drawings, and structured diagrams; directly within the spreadsheet.
    • Highlight what matters, erase what doesn’t in PDFs

      When reviewing PDFs or preparing them for sharing, two things often come up: you want to draw attention to what’s important, and you want to hide what isn’t. Zoho PDF Editor gives you both capabilities in one place with its highlight and erase tools.
    • WorkDrive Desktop Sync Is Being Deprecated: Move to WorkDrive TrueSync for a Smarter Experience

      Hi everyone, We are excited to share a better, smarter way to access and manage your files directly from your computer! We’re transitioning from our legacy Desktop Sync app to WorkDrive TrueSync, designed to give you faster performance,greater flexibility,
    • Zoho Desk API returning 403 SCOPE_MISMATCH for Ticket Search API

      Hello Zoho Support Team, We are experiencing an authorization issue with the Zoho Desk Ticket Search API. Our integration was working correctly yesterday, but we are now receiving the following error when calling the Search Tickets endpoint: API: GET
    • Set connection link name from variable in invokeurl

      Hi, guys. How to set in parameter "connection" a variable, instead of a string. connectionLinkName = manager.get('connectionLinkName').toString(); response = invokeurl [ url :"https://www.googleapis.com/calendar/v3/freeBusy" type :POST parameters:requestParams.toString()
    • Introducing the Zoho Campaigns MCP server

      Hello everyone, We are pleased to announce that Zoho Campaigns is now available in Zoho MCP. You can now connect your Zoho Campaigns organization to AI tools such as Claude, ChatGPT, GitHub Copilot in VS Code, and Cursor, and manage your email marketing
    • SubForm Custom Sort - Deluge Workflows

      I have been experimenting with the Custom Order function of Subforms, it works beautifully within the subform itself and retains the sorting order. However, I need to be able to iterate through the records in Deluge using the sort order (The usage case
    • How to embed Google Analytics GA4 tracking on a standalone Public Page (outside Customer Portal)?

      Hi, Is there an official or recommended way to embed Google Analytics (GA4) tracking directly onto a standalone public Zoho Creator Page (outside of a Customer Portal)? I’m considering using an invisible Custom JS Widget as a workaround, but I’d love
    • Bank feeds automation is broken - requires manual intervention and authentication

      Yodlee supports Australian Open Banking CDR protocols natively, but Zoho Books' implementation is still triggering legacy screen-scraping MFA blocks on CBA and other business banking accounts. When will Zoho update its Australian bank feed pipeline to
    • Cannot Access Subform Display Order in Deluge

      As highlighted in this community post, we still have to deal with the significant limitation of not being able to access the user-sorted order of subform rows through Deluge. This creates a major disconnect between the UI capabilities and backend automation,
    • Process FOR loop for subform items in the order of the manual sorting

      Hi Guys, I have searched everywhere and tried everything, but I still not able to resolve one particular challenge. I have a subform in my Invoice with rows for each item. I made it so that we can change the order of the items manually. I need to be able
    • Augmenting subform capabilities

      Greetings, everyone! Finally, the day has come for us to announce some of the most anticipated, requested, and exciting updates to subforms in Zoho Creator. As you're aware, subforms are an integral part of Creator forms, as they help in establishing
    • Build appointment scheduling into your vibe-coded apps with Zoho Bookings

      Exploring vibe coding? Wondering how an app built with AI can handle appointment scheduling? Join our upcoming live webinar to discover how Zoho Bookings APIs can help connect applications to scheduling capabilities. Here's what we'll explore: • Show
    • Is there a way to make Reason For Loss field mandatory at Closed Lost stage?

      Hi guys, Reason For Loss system picklist appears on Verify Details page but it is not mandatory so as a result, AEs tend to omit it (leave at default value -None-). Is there a way to make it mandatory at Closed Lost? I tried layout rule but this field
    • Cannot reorder fields in Page Layout in Expenses and Purchase Requests

      It is very inconvenient that the custom fields in Page Layout cannot be re-ordered. The only way is to remove the fields and re-create them; however, it is impractical. This would affect the reports and dashboards we are having. Not able to re-order the
    • Request for Zoho Desk Version and Module Details

      Kindly help us confirm the version of Zoho Desk currently being used in our portal, along with the module/edition name. We require this information urgently for our internal documentation.
    • How to customize the displayed name of contacts in Trident?

      Hello, For work purposes, I sort different customers into different folders, and I also change their display names in Contacts so I can easily recognize them later. However, Trident doesn’t seem to support this. Even after I edit a contact’s name in Contacts,
    • User and mailbox reports in Zoho Mail: Review account status, storage, and login activity of users

      Administrators often need answers to questions such as which users have never logged in, whose storage is almost full, or which mailboxes are accessed through POP or IMAP. The User and Mailbox reports in the Zoho Mail Admin Console provide these details
    • ZOHO CRM APP - SALESINBOX

      Is it possible to access SALESINBOX in the CRM MOBILE APP
    • Unbundle feature for composite items

      We receive composite items from our vendors and sell them either individually or create other composite items out of them. So, there is a lot of bundling and unbundling involved with our composite items. Previously, this feature was supported in form
    • Tip #96 – See more of the remote screen with Virtual Monitor – 'Insider Insights'

      Hello Zoho Assist Community! Say you're supporting a device that has no monitor attached, like a server in a closet or a kiosk PC. You connect, and the screen is tiny, blurry, or distorted. Text overlaps and windows end up in odd places. Troubleshooting
    • Understanding transactional channels in Zoho CPaaS

      Every interaction with a business creates an opportunity to communicate.Whether it's welcoming a new user, confirming a payment, sharing an order update, or verifying a login, timely communication keeps users informed and connected. But how do businesses
    • Autoscan Settings

      I saw that autoscan is now included in my plan which is great however when I import pdf invoices from my main supplier which contain inventory lines and some also include shipping charges the autoscan doesn't match any of the items and also misses the
    • How to resubscribe to email after using unsubscribe link in Zoho

      I was testing the unsubscribe link feature from our contacts module in ZohoCRM and I sent my personal email a version of an email template with the default embedded unsubscribe link to see if it would utilize the "Email Opt Out" field to track un-subscription.
    • WhatsApp Calling Integration via Zoho Desk

      Dear Zoho Desk Team, I would like to request a feature that allows users to call WhatsApp numbers directly via Zoho Desk. This integration would enable sending and receiving calls to and from WhatsApp numbers over the internet, without the need for traditional
    • [ZohoDesk] Improve Status View with a new editeble kanban view

      A kanban view with more information about the ticket and the contact who created the ticket would be valueble. I would like to edit the fields with the ones i like to see at one glance. Like in CRM where you can edit the canvas view, i would like to edit
    • No access to contact categories in Zoho Mail Apps

      I have set up a number of contact categories for my organization. When I compose an email using a web browser these categories are visible. When I compose an email using your Android or iOS Apps no contact categories are visible. Is this expected? If
    • Zoho Plug In

      Is there anyone out there who is able to use it? I have seen lots of problems posted, unable to get any satisfactory suppport at the moment!  I would be really appreciate hearing from users that have it installed and working, my team are loosing belief it will ever work. Be great to hear from those that have a more positive experience
    • Outlook to Zoho sync

      I am the admin for our company and I have (1) single user that is having difficulties with her emails syncing. I have found where the problem is, but I don't know 100% if what is happening is how the plug-in works or if it's a setup issue. My boss created
    • Next Page