Set Up and Use the IM Session Status Webhook in Zoho Desk

Set Up IM Session Status Webhook


Never miss a conversation update in IM! With the IM Session Status webhook, you’ll know right away when a live chat or instant message session changes status, so you can respond quickly, keep your team informed.

  

What can you achieve with the IM Session Status webhook?   

Stay in control of every customer conversation. The IM Session Status webhook notifies you automatically the moment a chat session:
  1. Is picked up by an agent or a bot
  2. Goes on hold or ends
  3. Gets assigned, blocked, or switched between open and active states
 
This lets you:
  1. Trigger internal workflows instantly (like reassigning a ticket or updating a dashboard)
  2. Analyze support team performance in real time
  3. Monitor customer engagement across channels

Steps to set up your webhook for IM Session Status updates   

  1. Navigate to Setup > Automation > Webhooks.
  2. Click Create Webhook.
  3. Select the IM Session Status event.
  4. Enter your Webhook URL. This is where notifications will be sent.
  5. Save and test.

What information do you get in each webhook notification?   

 
Every time a chat/IM session’s status changes, you’ll get a payload like this at your webhook endpoint:
json
 [{
  "payload": {
    "currentAssigneeId": "106554156",
    "sessionStatus": "ON_HOLD",
    "replyStatus": "ACCEPTED",
    "sessionOldStatus": "ENDED",
    "sessionId": "65403000000038063",
    "messagesCount": "23",
    "assigneeType": "AGENT",
    "channelId": "65403000000038011"
  },
  "eventTime": "1751022087019",
  "eventType": "IM_Session_Status",
  "orgId": "106553778"
}] 

Payload field description
Payload field description
Field
Description
currentAssigneeId
Agent or bot ID currently handling the session.
sessionStatus
Current status of the conversation (e.g., ON_PROGRESS, ENDED).
replyStatus
If messages can be sent/received for this session (see below for all possible statuses).
sessionOldStatus
Previous status of the session. This helps with tracking changes.
sessionId
Unique identifier for the session.
messagesCount
Total number of messages exchanged so far.
assigneeType
Identifies if the current handler is an ‘AGENT’ or a ‘BOT’.
channelId
ID of the channel (chat, social, etc.) where the session occurred.
eventTime
Timestamp of event occurrence.
eventType
The type of webhook event received (IM_Session_Status).
orgId
Your Zoho Desk organization ID.
   

Status Values Cheat Sheet   

Session Status
Reply Status
Session Status
Value
Description
CREATED
New conversation started by an end user.
OPEN
Waiting to be handled by an agent or bot.
ON_PROGRESS
Agent/bot is actively involved in the session.
ON_HOLD
Picked up, but no response sent yet.
ENDED
Agent/bot has ended the session.
BLOCKED
Session is blocked; no further messages allowed.
Reply Status
Value
What It Means
ACCEPTED
Messages can be exchanged.
CHANNEL_INACTIVE
Channel is inactive. Messages cannot be sent.
CHANNEL_REVOKED
Channel revoked. Messages cannot be sent.
SESSION_ENDED
Session ended and communication is closed.
SESSION_BLOCKED
Blocked by agent. No messages allowed.
SESSION_EXPIRED
Expired session. The user must send another message to resume.
UNASSIGNED
Not assigned to anyone.
NOT_AN_ASSIGNEE
Handler is not actually assigned to the session.
CREDIT_EXHAUSTED
Message credit exhausted and no more can be sent.
ACCESSTOKEN_EXPIRED
(FB/Instagram only) Access token expired, needs reauthentication.
PERMISSION_REVOKED
(FB/Instagram only) Page permission revoked.
UNEXPECTED_ERROR
Error sending message. There may be a misconfiguration.
PAGE_REMOVED
Page/channel deleted or deactivated.
SANDBOX_LIMIT_REACHED
Sandbox daily message limit reached.
CHANNEL_DELETED
Channel deleted; messaging disabled.
ENDUSER_OFFLINE
(ZBM sessions) End user is offline; only receive messages.
CONFIG_SKIPPED_CHANNEL
Configuration skipped.
OUTGOING_LIMIT_REACHED
Message limit reached for outbound messages.
ASSIGNED_TO_OTHER_SERVICE
Handled by another Zoho service.


Practical use cases   

  1. Real-time Agent Routing: Reassign chats when status is "ON_HOLD" too long.
  2. Performance Tracking: Log all ENDED sessions for service-quality reviews.
  3. Queue Monitoring: Alert supervisors when sessions stay "OPEN" with no assignee.
  4. Omnichannel Insights: Tie chat behavior to other channel data with the unique session or channel ID.

Advanced tips and integration examples   

Automating escalations
  1. Connect the webhook to your ticketing or incident management system.
  2. Trigger auto-escalation for sessions blocked, left open, or ended abruptly.
Live analytics dashboard
  1. Feed webhook data into a dashboard tool for up-to-the-minute session trends, agent workloads, and engagement stats.

Custom notifications
  1. Use payload data to build targeted email, SMS, or app notifications for your team.
  2. Send alerts for "BLOCKED" or "CREDIT_EXHAUSTED" statuses to prevent lost conversations.


Best practices  


  1. Document Your Flows: Keep a record of each status transition for compliance and clarity.
  2. Regularly Review Status Definitions: Stay up to date with any new values Zoho adds.
  3. Test Thoroughly: Simulate all session states and statuses in a sandbox before going live.
  4. Secure Your Endpoint: Use authentication, validation, and logging to protect your webhook URL.


Troubleshooting & FAQ

Why am I not receiving any webook events?
  1. Double-check the destination URL. Ensure it is accessible, expects POST requests, and can parse JSON.
  2. Review authentication and firewall settings if you use a secured webhook endpoint.
Why is the data my webhook is receiving not useful?
  1. Make sure your logic checks for all possible statuses (such as "BLOCKED" or "SESSION_EXPIRED").
  2. Map sessionStatus and replyStatus values in your app to accurately reflect session lifecycles.
Can I use this webhook for Whatsapp/Facebook/Instagram?
  1. Yes! The payload includes helpful statuses for social channels. Look for replyStatus like ‘ACCESSTOKEN_EXPIRED’ or ‘PERMISSION_REVOKED’ for Facebook/Instagram integrations.
 

      Create. Review. Publish.

      Write, edit, collaborate on, and publish documents to different content management platforms.

      Get Started Now


        Access your files securely from anywhere

          Zoho CRM Training Programs

          Learn how to use the best tools for sales force automation and better customer engagement from Zoho's implementation specialists.

          Zoho CRM Training
            Redefine the way you work
            with Zoho Workplace

              Zoho DataPrep Personalized Demo

              If you'd like a personalized walk-through of our data preparation tool, please request a demo and we'll be happy to show you how to get the best out of Zoho DataPrep.

              Zoho CRM Training

                Create, share, and deliver

                beautiful slides from anywhere.

                Get Started Now


                  Zoho Sign now offers specialized one-on-one training for both administrators and developers.

                  BOOK A SESSION







                              Quick LinksWorkflow AutomationData Collection
                              Web FormsRetailOnline Data Collection Tool
                              Embeddable FormsBankingBegin Data Collection
                              Interactive FormsWorkplaceData Collection App
                              CRM FormsCustomer ServiceForms for Solopreneurs
                              Digital FormsMarketingForms for Small Business
                              HTML FormsEducationForms for Enterprise
                              Contact FormsE-commerceForms for any business
                              Lead Generation FormsHealthcareForms for Startups
                              Wordpress FormsCustomer onboardingForms for Small Business
                              No Code FormsConstructionRSVP tool for holidays
                              Free FormsTravelFeatures for Order Forms
                              Prefill FormsNon-Profit
                              Forms for Government
                              Intake FormsLegal
                              Mobile App
                              Form DesignerHR
                              Mobile Forms
                              Card FormsFoodOffline Forms
                              Assign FormsPhotographyMobile Forms Features
                              Translate FormsReal EstateKiosk in Mobile Forms
                              Electronic FormsInsurance
                              Drag & drop form builder

                              Notification Emails for FormsAlternativesSecurity & Compliance
                              Holiday FormsGoogle Forms alternative GDPR
                              Form to PDFJotform alternativeHIPAA Forms
                              Email FormsWufoo alternativeEncrypted Forms
                              Accessible FormsTypeform alternativeSecure Forms

                              WCAG

                                          Create. Review. Publish.

                                          Write, edit, collaborate on, and publish documents to different content management platforms.

                                          Get Started Now






                                                            You are currently viewing the help pages of Qntrl’s earlier version. Click here to view our latest version—Qntrl 3.0's help articles.




                                                                Manage your brands on social media

                                                                  Use cases

                                                                  Make the most of Zoho Desk with the use cases.

                                                                   
                                                                    

                                                                  eBooks

                                                                  Download free eBooks and access a range of topics to get deeper insight on successfully using Zoho Desk.

                                                                   
                                                                    

                                                                  Videos

                                                                  Watch comprehensive videos on features and other important topics that will help you master Zoho Desk.

                                                                   
                                                                    

                                                                  Webinar

                                                                  Sign up for our webinars and learn the Zoho Desk basics, from customization to automation and more

                                                                   
                                                                    
                                                                  • Desk Community Learning Series


                                                                  • Meetups


                                                                  • Ask the Experts


                                                                  • Kbase


                                                                  • Resources


                                                                  • Glossary


                                                                  • Desk Marketplace


                                                                  • MVP Corner



                                                                    Zoho Sheet Resources

                                                                     

                                                                        Zoho Forms Resources


                                                                          Secure your business
                                                                          communication with Zoho Mail


                                                                          Mail on the move with
                                                                          Zoho Mail mobile application

                                                                            Stay on top of your schedule
                                                                            at all times


                                                                            Carry your calendar with you
                                                                            Anytime, anywhere




                                                                                  Zoho Sign Resources

                                                                                    Sign, Paperless!

                                                                                    Sign and send business documents on the go!

                                                                                    Get Started Now




                                                                                            Zoho TeamInbox Resources





                                                                                                      Zoho DataPrep Demo

                                                                                                      Get a personalized demo or POC

                                                                                                      REGISTER NOW


                                                                                                        Design. Discuss. Deliver.

                                                                                                        Create visually engaging stories with Zoho Show.

                                                                                                        Get Started Now









                                                                                                                            • Related Articles

                                                                                                                            • Measuring Customer Happiness in Instant Messaging

                                                                                                                              Getting genuine, useful feedback after a chat support interaction shouldn’t feel forced for you or your customers. With Zoho Desk, you can gather honest feedback without interrupting the conversation flow. This guide covers how Customer Satisfaction ...
                                                                                                                            • Introduction to Instant Messaging

                                                                                                                              Instant messaging (IM) enables you to connect with your customers on the messaging apps they use, such as WhatsApp, Telegram, Facebook Messenger, and more. This feature consolidates customer conversations from various platforms into one unified ...
                                                                                                                            • Configure Welcome Messages in Instant Messaging Inbox

                                                                                                                              Welcome messages are your first opportunity to create a positive and professional impression when customers start a chat. This guide will help you set up and manage welcome messages in your Instant Messaging (IM) channels. What you will achieve with ...
                                                                                                                            • WhatsApp Multi-WABA support by Instant Messaging

                                                                                                                              If you've been using the WhatsApp channel to communicate with your customers, you're likely aware that every WhatsApp Business Account (WABA) needs a verified phone number specifically dedicated to that IM channel for the current WhatsApp Business ...
                                                                                                                            • Configure Offline Messages in Instant Messaging Channels

                                                                                                                              When a customer reaches out for help and no one’s there to respond, this can lead to feelings of frustration. That’s why Offline Messages exist, to let your customers know you’ve received their message and will get back to them soon. This article ...
                                                                                                                              Wherever you are is as good as
                                                                                                                              your workplace

                                                                                                                                Resources

                                                                                                                                Videos

                                                                                                                                Watch comprehensive videos on features and other important topics that will help you master Zoho CRM.



                                                                                                                                eBooks

                                                                                                                                Download free eBooks and access a range of topics to get deeper insight on successfully using Zoho CRM.



                                                                                                                                Webinars

                                                                                                                                Sign up for our webinars and learn the Zoho CRM basics, from customization to sales force automation and more.



                                                                                                                                CRM Tips

                                                                                                                                Make the most of Zoho CRM with these useful tips.



                                                                                                                                  Zoho Show Resources