How to use pipeline action: Evaluate JavaScript for accessing Invgate Tickets

Overview

The Evaluate JavaScript action in the pipeline allows for versatile methods to access Invgate ticketing API calls, providing a convenient way to interact with tickets directly from Invgate chat sessions.

Invgate Ticketing Features

Before getting started, ensure the following feature is enabled:

  • Invgate.Ticketing

Script Methods

getInvgateTickets('seekerEmailAddress'): To retrieve a list of Invgate tickets, utilize the getInvgateTickets script call, passing the seeker's email address as a parameter.

// Get tickets
var tickets = getInvgateTickets("${Guest.Email}");
var ticketsArray = JSON.parse(tickets);

// Perform operations on ticket records
sendReply("Count of tickets: " + ticketsArray.length);

Script Methods for Ticket Manipulation: Leverage JavaScript Invgate helper calls to create and update tickets:

  • getInvgateTicket(seekerEmailAddress)
  • updateInvgateTicketDescription(ticketId, description)
  • assignInvgateTicket(agentEmailAddress)
  • updateInvgateTicketTitle(ticketId, title)

Related Items

To further enhance your understanding and utilization of the ticketing integration in Chime, here are some related resources:

bmorris