Skip to main content

Kaizala: Developer Blog


Customer ticketing solution on Kaizala

In this post, I will be exploring on how to get a customer support ticket management system on Kaizala. Instead of sending multiple text messages to give an update on the ticket status, we could just have a rich card that provides the ticket status. And, when there is a change in status, the card could be updated to reflect the latest status.

To achieve this, below are the steps that would be required:

  1. Build a card with custom chat card based on defined properties
  2. Call into an API to send the card ( scenario where ticket is raised )
  3. Call into an API to update the card ( scenario where ticket status changes )

Building card with custom chat card view

[Kaizala allows you to extend client side functionality using custom actions / cards. Microsoft documentation for developing a custom action can be found here.]

For building a card with custom chat card, we will need to define the sourceLocation of the chat canvas card view in package.json. Unlike the Response view, creation view or results / summary view – which are html / JS based, the chat card takes a declarative schema [more about it here].


For this demo, you will not need the ResponseView, CreationView or ResultsView as the ticket information would be present in the chat canvas itself. Notice the sourceLocation in the example below.


The chat card here has four fields: one hard-coded to “XYZ CUSTOMER CARE” and the other 3 fields fed from properties: customernameticketnumber and ticketstatus.


Just create an AppModel with the title and empty questions array.

 Sending ticket from API

To send the ticket via API, we would be using the actions endpoint as shown below. Notice the subscribers array – since we need to send this targeted to the particular subscriber ( for more information, you can refer the post Move SMS notifications to Kaizala ).

Executing this API would give you the referenceId and actionId. Cache this actionId as we will need it in the next step. In the below example, we have set the customername, ticketnumber and ticketstatus properties to “NAME: John Thomas”,  “TICKET#: 907050”, “STATUS: ACTIVE” respectively.

Method POST
URL {{endpoint-url}}/v1/groups/{{test-group-id}}/actions
Request Body {
value:”NAME: John Thomas”,
value:”TICKET#: 907050″,

Updating the ticket status using API

As the ticket status changes, you would need to update the status on the card that was sent. For that we would be using the actions/<<action-id>>/properties endpoint. In the below example, we would be updating the ticket status to RESOLVED. Notice that the actionId is the ID of the action sent in the earlier step.

Method PUT
URL {{endpoint-url}}/v1/groups/{{test-group-id}}/actions/{{actionId}}
Request Body {
“name” : “ticketstatus”,
“type” : “Text”,
“value” : “STATUS: RESOLVED”

Screenshots of the demo

Ticket sent from API

screenshot of new ticket

Ticket after updating the status from API

screenshot of resolved ticket


Thank you for reading! Hope that was helpful. I have shared the package at here, in case you want to give it a shot. ( don’t forget to change the package id before uploading to Kaizala to prevent conflicts ).  If there is anything else you want me to cover,  let me know through the comments section.