Skip to Content

Jitterbit Support Ticket Agent

Overview

Jitterbit provides the Support Ticket Agent to customers as a solution through Jitterbit Marketplace. A solution bundles related assets, such as Jitterbit Studio projects, Jitterbit API Manager APIs, and Jitterbit App Builder apps, so you can acquire them together. This solution is a front-line support agent that answers user questions from your organization's knowledge bases and, when it cannot find a confident answer, helps the user create or update a support ticket in your IT service management (ITSM) system. Users chat with the agent in Microsoft Teams, Slack, or an App Builder chat interface.

When a user sends a message, the agent confirms the user's access in App Builder, redacts sensitive values from the message, and uses a large language model (LLM) to classify the message's intent. It then retrieves answers from the knowledge bases assigned to the user, scores its confidence in the answer, and replies with the answer and its citations. If confidence is low, the agent checks the user's existing tickets for a likely duplicate and, with the user's consent, either adds a comment to the existing ticket or creates a new one. The agent keeps conversation state in Jitterbit Cloud Datastore and records every interaction in App Builder.

The agent performs the following tasks:

  • Receives support questions from Microsoft Teams, Slack, and App Builder chat through a Jitterbit custom API.
  • Verifies each user's access and assigned knowledge bases in App Builder.
  • Redacts sensitive values, such as Social Security numbers, payment card numbers, email addresses, IP addresses, phone numbers, and credentials, before sending a message to the LLM, and restores them in the response.
  • Uses AI to classify each message as a continuation of the current topic or a new topic, to detect the user's language, and to identify the user's intent.
  • Retrieves answers and citations from the knowledge bases assigned to the user, and calculates a confidence score for each answer.
  • Asks the user for feedback on high-confidence answers.
  • For low-confidence answers, detects potential duplicate tickets and asks for the user's consent (human-in-the-loop approval) before creating a ticket or adding a comment to an existing ticket.
  • Creates and updates tickets in the configured ITSM system and returns a deep link to the ticket.
  • Maintains active user sessions, conversation history, and an interaction log.

This document explains how to set up and operate this solution. It covers architecture, prerequisites, and steps to install, configure, and operate the solution, and describes the App Builder app that works with it.

Solution architecture

This solution operates as an API-driven chat agent. Microsoft Teams, Slack, and App Builder chat each call the same Jitterbit custom API, and the agent replies through the platform the message came from. A typical interaction is handled as follows:

  1. A user sends a message in Microsoft Teams, Slack, or App Builder chat. The platform sends the message in a POST request to the agent's custom API.
  2. The Initial operation reads the request and identifies the chat platform. The Chat Interface operation routes the request to the Teams, Slack, or App Builder operation, which prepares the user's identity and runs the Support Agent Orchestrator operation.
  3. The Support Agent Orchestrator operation checks whether the message is a greeting. If it is, the agent replies with a greeting in English or Portuguese.
  4. The agent retrieves the user's permissions, tenant, and assigned knowledge bases from App Builder. If the user has no access, the agent replies that the user does not have access to the chat interface.
  5. The agent looks up the user's active session in Cloud Datastore. A session lasts 5 minutes from the last message. If no active session exists, the agent starts a new one.
  6. The agent retrieves the target ITSM configuration from App Builder.
  7. The agent redacts sensitive values from the message and stores the redaction mapping in Cloud Datastore.
  8. The agent checks Cloud Datastore for a pending feedback session or human-in-the-loop (HITL) consent request from the user's previous message. If one exists, the agent handles the user's reply to it. Otherwise, it continues.
  9. The agent builds the conversation history from the interaction log in App Builder and sends the redacted message to an LLM, which classifies the message's topic, language, and intent.
  10. The agent retrieves answers from the user's assigned knowledge bases and builds a response with citations. It then calculates a confidence score.
  11. If the confidence score is 0.85 or higher, the agent returns the answer and asks the user whether it answered the question. If the score is lower, the agent checks the user's tickets for a potential duplicate, then asks the user whether to add the conversation to an existing ticket or to create a new one.
  12. When the user approves, the agent creates the ticket or adds the comment in the ITSM system and returns a link to it.
  13. The agent restores redacted values in the response, writes the interaction to the App Builder interaction log, and delivers the response to the chat platform.

Workflow diagram

The following diagram shows the main request-handling workflow for the Support Ticket Agent.

--- config: themeVariables: lineColor: '#6b7280' edgeLabelBackground: '#f5f5f5' flowchart: padding: 20 nodeSpacing: 80 --- flowchart LR classDef default fill:white, stroke:black, stroke-width:3px, rx:15px, ry:15px CHAT[fas:fa-comments
Chat platform] JSP@{ shape: hex, label: "
Support Ticket
Agent" } AB@{ shape: hex, label: "
App Builder app" } CDS@{ shape: hex, label: "fas:fa-database
Cloud Datastore" } LLM[fas:fa-brain
LLM] KB[Azure AI Search
knowledge bases] ITSM[fab:fa-jira
Jira] CHAT <-->|1. User message and response| JSP JSP <-->|2. Access, ITSM configuration, interaction log| AB JSP <-->|3. Session and state| CDS JSP <-->|4. Classify intent| LLM JSP <-->|5. Retrieve answers| KB JSP -->|6. Create ticket or add comment| ITSM

Prerequisites

You need the following components to use this solution.

Harmony components

You must have a Jitterbit Harmony license with access to the following components:

App Builder requirements

The solution includes an App Builder app. Your App Builder instance must meet the following requirements:

  • An App Builder instance running the same version as the app. The app installs only on a matching version.
  • An App Builder instance that uses a PostgreSQL database.

To find out which App Builder version the app requires, contact Jitterbit support before you install it.

Supported endpoints

The solution connects to the following endpoints. You can accommodate other systems by modifying the project's endpoint configurations and workflows.

Large language model (LLM)

The solution uses a GPT model deployed in Azure AI Foundry to classify each message's intent and topic, and to check for duplicate tickets. You must have an Azure AI Foundry project with a deployed model and an API key.

Knowledge bases

The solution retrieves answers from knowledge bases in Azure AI Search. You must have an Azure AI Search service, with the knowledge bases that your users query, and an API key for the service. Each user's assigned knowledge bases are defined in App Builder.

Chat platforms

Users can chat with the agent through any of the following platforms:

  • Slack: You must have a Slack workspace and permission to create a Slack app with a Bot User OAuth Token.
  • Microsoft Teams: The agent receives messages from a Microsoft Teams bot and replies through the Teams conversation. You must register a single-tenant bot in Azure, as described in Configure the Microsoft Teams bot.
  • App Builder chat: The agent receives messages from a chat interface in the App Builder app.

ITSM systems

The agent creates and updates tickets in the ITSM system that is configured for each account in App Builder. The agent works with the following systems:

  • Jira: You must have a Jira instance and an account with permission to search for, create, and comment on issues. The agent authenticates with a Jira username and access token.
  • Salesforce: You can configure Salesforce as the target ITSM system. You must have a Salesforce org with a connected app that provides a client ID and client secret.

Note

The agent's ticket creation and update logic is built for Jira. If your organization's tickets are in Salesforce, you must modify the workflow's operations to replace Jira-specific components with components for Salesforce.

App Builder

The solution includes an App Builder app that stores user permissions, tenants, knowledge base assignments, ITSM credentials, and the interaction log. You must have access to an App Builder instance that hosts the app and an API key for its REST APIs.

Cloud Datastore

The solution uses Jitterbit Cloud Datastore to store active user sessions, redaction mappings, ticket lists, HITL consent states, and feedback session states. Cloud Datastore is part of the Jitterbit Harmony platform and does not require a separate service account, but the number of key storages available depends on your organization's purchased Cloud Datastore tier.

Chat messages

The Support Ticket Agent receives all requests as chat messages sent from Microsoft Teams, Slack, or App Builder chat. This section describes how users interact with the agent.

Chat guidelines

Follow these guidelines when sending messages to the agent:

  • Ask questions in natural language.
  • Do not include more sensitive information than needed. The agent redacts values such as Social Security numbers, payment card numbers, email addresses, IP addresses, phone numbers, and credentials before sending a message to the LLM, but you should avoid sharing them.
  • Continue a conversation within 5 minutes of the last message. After 5 minutes of inactivity, the agent starts a new session, and pending feedback and consent requests expire.
  • When the agent asks whether an answer helped, reply Yes or No. Replying Yes or Close the Ticket closes a ticket the agent created for a high-confidence answer. The agent creates a resolved ticket for a high-confidence answer to a new topic only if your account's ITSM configuration in App Builder enables it.
  • When the agent asks whether to create a ticket or add your details to an existing ticket, reply with your approval or decline in plain language.

Example messages

The following example messages show the types of messages the agent can handle.

Knowledge base questions

Ask a question that the agent can answer from the knowledge bases assigned to you.

Prompts

  • How do I reset my VPN password?
  • Where can I find the expense report policy?

Escalation replies

When the agent cannot find a confident answer, it offers to create a ticket or to add your details to a related ticket. Reply to approve or decline.

Prompts

  • Yes, please open a ticket.
  • No, I do not need a ticket.

Installation, configuration, and operation

Follow these steps to install, configure, and operate this solution:

  1. Get the solution
  2. Obtain Azure credentials
  3. Prepare Cloud Datastore
  4. Prepare App Builder
  5. Configure the Slack app
  6. Configure the Microsoft Teams bot
  7. Configure project variables
  8. Test connections
  9. Deploy the project
  10. Configure the Jitterbit custom API
  11. Review project workflows
  12. Trigger the project workflows

For troubleshooting guidance, see Troubleshooting.

Get the solution

Follow these steps to get the solution from Marketplace:

  1. Log in to the Harmony portal at https://login.jitterbit.com and open Marketplace.

  2. Locate the solution named Support Ticket Agent. To locate the solution, use the search bar or, in the Filters pane under Type, select Solutions to limit the display to solutions.

  3. Click the solution's Go to documentation link to open its documentation in a separate tab. Keep the tab open to refer back to after you start the configuration.

  4. Click Start solution to open the Details panel, which shows the solution's Configuration fields and Included assets. If the card shows Get solution instead, request access first. For details, see Get a solution.

  5. In the Configuration section, select the environment where the Studio project will be created and enter a prefix. If the section includes an API security profile field, select a profile. Depending on your organization's policy, this field may be optional. The prefix is added to the names of the imported assets.

  6. Click Import. After the progress message indicates that the projects were imported, click Imported assets, then Done.

  7. Open the imported Studio project from the Studio Projects page, and the imported custom API from API Manager.

Obtain Azure credentials

Obtain the following Azure credentials for use in the Azure project variables:

  1. In the Azure portal, open your Azure AI Foundry project and retain its endpoint base URL (up to .com) and the API key for the model deployment that the agent uses to classify intents and check for duplicate tickets.
  2. Open your Azure AI Search service and retain the service URL and an API key. Confirm that the service has the knowledge bases that your users query.

Prepare Cloud Datastore

Create a key storage in Jitterbit Cloud Datastore for each of the following. The Key, AlternativeKey, and Value fields are present by default. Add the custom fields shown for each key storage.

Key storage Purpose
Tier1 User Active Session Tracks each user's active session and its expiration.
Tier1 Support Agent Stores the mapping that restores redacted values in responses.
Tier1 Agent User Tickets Stores the user's tickets for duplicate detection.
Tier1 Agent HITL Consent Stores pending human-in-the-loop consent requests.
tier1_agent_feedback_session_state Stores pending feedback sessions for high-confidence answers.

Tier1 User Active Session

Create a key storage named Tier1 User Active Session. Add the following custom field:

Field name Type Description
Key Text Auto-populated. The session ID.
AlternativeKey Text Auto-populated. The chat platform's session key.
Value Text Not used.
expiresAt Date Auto-populated. The time the session expires.

Tier1 Support Agent

Create a key storage named Tier1 Support Agent. No custom fields are required.

Field name Type Description
Key Text Auto-populated. The session ID.
AlternativeKey Text Not used.
Value Big Text Auto-populated. The mapping between redaction placeholders and the original values.

Tier1 Agent User Tickets

Create a key storage named Tier1 Agent User Tickets. No custom fields are required.

Field name Type Description
Key Text Auto-populated. The account identifier the tickets belong to.
AlternativeKey Text Not used.
Value Big Text Auto-populated. The list of active tickets, as JSON.

Create a key storage named Tier1 Agent HITL Consent. No custom fields are required.

Field name Type Description
Key Text Auto-populated. The session ID.
AlternativeKey Text Not used.
Value Big Text Auto-populated. The pending consent state, as JSON.

tier1_agent_feedback_session_state

Create a key storage named tier1_agent_feedback_session_state. Add the following custom fields:

Field name Type Description
Key Text Auto-populated. The session ID.
AlternativeKey Text Auto-populated. The user's email address.
Value Big Text Auto-populated. The user's message.
currentState Text Auto-populated. The state of the feedback session.
expiresAt Date Auto-populated. The time the session expires.
scrubbedQuery Big Text Auto-populated. The user's message after redaction.
confidenceScore Number Auto-populated. The confidence score of the answer.
classifiedTopic Text Auto-populated. The topic classification of the message.

Retain the Cloud Datastore access token for use in the Cloud Datastore project variable.

Prepare App Builder

The solution includes the App Builder app, listed under Apps in the solution's Included assets, as an App Builder release package (an .LP file). The app and its REST APIs must be available in your App Builder instance before the agent can verify users or log interactions. For details about the app, see App Builder app. Your App Builder instance must meet the App Builder requirements.

Install the app

Install the release package on your App Builder instance:

  1. Log in to App Builder.

  2. Go to the IDE.

  3. Under Deploy, click Install Release.

  4. Click + Package and then click Browse.

  5. Select the .LP file from the solution.

  6. Click Save. The Release panel on the right displays the package information.

  7. Close the Package dialog.

  8. Confirm the details are correct and click Install.

Configure API authentication

The agent calls the following App Builder REST APIs:

REST API Purpose
UserKBMappings Retrieves and creates the mapping between users and their assigned knowledge bases.
tenant Looks up the tenant that a user belongs to.
account Retrieves account details and session information.
itsmcredential Retrieves and updates the ITSM configuration for an account.
interaction Stores and retrieves interaction log records.
conversationLatestTopicHistory Retrieves conversation history for the current topic.

Configure API key authentication in App Builder. You need an API key security provider and user-specific API keys. For detailed instructions, see Publish App Builder app as a REST API endpoint.

Obtain the URL of the app's REST API and an API key for use in the App Builder project variables.

Configure the Slack app

Skip this step if your users do not use Slack. To create the Slack app that users chat with:

  1. Create a Slack app from a manifest, using the following manifest. Replace <custom API service URL> with the service URL of the custom API you publish.

    display_information:
      name: Support Ticket Agent
      description: Front line support agent dedicated to answer questions from the
        knowledge base and automated ITSM integration when no answer is found
      background_color: "#2c2d30"
    features:
      bot_user:
        display_name: Support Ticket Agent
        always_online: true
    oauth_config:
      scopes:
        bot:
          - app_mentions:read
          - chat:write
          - im:history
          - im:read
          - users.profile:read
          - users:read
      pkce_enabled: false
    settings:
      event_subscriptions:
        bot_events:
          - app_mention
          - message.im
        request_url: <custom API service URL>
      org_deploy_enabled: false
      socket_mode_enabled: false
      is_mcp_enabled: false
      token_rotation_enabled: false
      app_level_token_rotation_enabled: false
    
  2. Install the app to your workspace.

  3. Retain the Bot User OAuth Token for the slack_bot_token project variable.

Configure the Microsoft Teams bot

Skip this step if your users do not use Microsoft Teams. To create the bot that users chat with:

  1. Register a bot with Azure by creating an Azure Bot resource in the Azure portal. Create the bot as a single-tenant app.

  2. In the bot's Configuration page, retain the Microsoft App ID (the client ID) and the App Tenant ID (the tenant ID).

  3. Next to Microsoft App ID, click Manage to open Certificates + secrets. Create a client secret and retain its value.

  4. Set the bot's messaging endpoint to the service URL of the custom API you publish.

  5. In the bot's Channels, select Microsoft Teams, accept the terms of service, and click Apply. For details, see Connect a Bot Framework bot to Microsoft Teams.

  6. Add the bot to Teams as part of a Teams app, and make the app available to your users. For details, see Distribute your Microsoft Teams app.

Configure project variables

In the Studio project installed from Marketplace, set values for the following project variables.

To configure project variables, use the project's actions menu and select Project Variables to open the configuration drawer.

Azure

Variable name Description
Azure_Foundry_Base_URL The endpoint base URL of your Azure AI Foundry project, up to .com (for example, https://<resource name>.services.ai.azure.com).
Azure_AI_Foundry_Key API key for authenticating with Azure AI Foundry.
Azure_Search_Serivce_Base_URL The URL of your Azure AI Search service. The spelling of this variable name is exact.
Azure_Search_Service_Key API key for authenticating with your Azure AI Search service.

App Builder

Variable name Description
App_Builder_Endpoint_API_URL The URL of the app's REST API. This URL includes the base URL of your App Builder instance, the REST API version, and the app's endpoint name (for example, https://<App Builder instance>/rest/v1/<app endpoint name>). The agent adds resource names, such as account and interaction, to this URL.
App_Builde_Endpoint_API_Key API key for the App Builder REST APIs. The spelling of this variable name is exact.

Azure Blob Storage

Variable name Description
Azure_Blob_Endpoint_URL The endpoint URL of the Azure Blob Storage account that receives extracted document content.
Azure_Target_Container_Name The name of the container that receives extracted document content.
Azure_Source_Container_SAS_Token The shared access signature (SAS) token for the container.

Cloud Datastore

Variable name Description
Cloud_Data_Storage_Token Access token for Jitterbit Cloud Datastore.

Slack

Variable name Description
slack_bot_token The Bot User OAuth Token for the Slack app.

Jira

Variable name Description
JIRA_Host The host of your Jira instance.
JIRA_Username The username of the Jira account the agent uses.
JIRA_Access_Token The access token for the Jira account.

Salesforce

Variable name Description
SF_Instance The URL of your Salesforce instance.
SF_Client_ID The client ID of the Salesforce connected app.
SF_Client_Secret The client secret of the Salesforce connected app.

Other

Variable name Description
debug Controls additional logging in the operation logs.

Test connections

Test the endpoint configurations to verify connectivity using the defined project variable values.

To test connections, go to the design component palette's Project endpoints and connectors tab, hover over each endpoint, and click Test.

Deploy the project

Deploy the Studio project.

To deploy the project, use the project's actions menu and select Deploy.

Configure the Jitterbit custom API

The solution imports a custom API into API Manager, using the API security profile you selected when you got the solution. The API exposes the agent's entry point to Microsoft Teams, Slack, and App Builder chat. The API is linked to the imported project, but you might need to edit it before it connects to the Initial operation.

Verify that the custom API triggers the Initial operation with the POST method and the System Variable response type, then publish it. After publishing, retain the service URL. Use it as the request URL when you configure the Slack app, and configure Microsoft Teams and App Builder chat to send messages to it.

Review project workflows

The Studio project contains 20 workflows that implement the Support Ticket Agent functionality, organized into four functional groups.

Chat entry and orchestration

Workflow Description
Tier 1 Support Chat Manager Receives each request through the Initial operation, identifies the chat platform, and routes the request. The Support Agent Orchestrator operation coordinates the full conversation: greeting detection, access checks, session handling, redaction, feedback and consent handling, the LLM call, interaction logging, and delivery of the response.
MS Teams Chat Reads Teams messages, requests an authorization token from Microsoft, retrieves the user's Teams profile, and posts the agent's response to the Teams conversation.
Slack Chat Handles Slack events and commands, retrieves the user's Slack profile, shows a typing indicator, posts the response, and removes the typing message.
App Builder Chat Reads messages from App Builder chat and builds the API response that App Builder displays.

Access, privacy, and state

Workflow Description
Check User Access Looks up the user's tenant, permissions, and assigned knowledge bases in App Builder, and creates the user's knowledge base mapping when needed.
PII Redaction and Rehydration Redacts personally identifiable information (PII) and credentials, such as Social Security numbers, payment card numbers, email addresses, IP addresses, and phone numbers, from the user's message, and restores them in the response.
Cloud Datastore Inserts, queries, updates, and deletes the records in the five key storages, and cleans up expired records.

Knowledge retrieval and logging

Workflow Description
Azure KB Retrieval Builds the retrieval request for each assigned knowledge base, retrieves answers from Azure AI Search, formats the response with citations, and calculates the confidence score.
Azure AI Intent Classifier Sends the message and conversation history to the LLM to classify the topic, language, and intent, and checks for duplicate tickets.
Interaction Log Writes each interaction to App Builder and retrieves session and conversation history.
Azure Blob Document Upload Uploads extracted document content to Azure Blob Storage.

ITSM and escalation

Workflow Description
Target ITSM Connector Retrieves the account's ITSM configuration from App Builder and routes the request to Jira or Salesforce.
ITSM App Config Retrieves and updates the ITSM configuration stored in App Builder.
ITSM JIRA Router Retrieves the user's tickets and finds the closest match to the current request.
Jira Actions Creates Jira issues with retry handling, queries issues, and adds comments.
Salesforce Creates, updates, upserts, and queries Salesforce cases.
Potential Duplicate Ticket Generator Creates a ticket that links to a potential duplicate when the agent finds a close match.
Net-New Ticket Creation & Deep Link Generator Creates a new ticket when no duplicate exists and generates a link to it.
HITL Consent Gate Classifies the user's reply to a consent request as approved, declined, or ambiguous, and routes the request.
High Confidence Feedback Gate Classifies the user's feedback on a high-confidence answer and routes the request, including closing a ticket.

The agent uses the following thresholds:

Threshold Value Behavior
Confidence score 0.85 or higher The agent returns the answer and asks the user for feedback.
Confidence score Below 0.85 The agent checks for a duplicate ticket and asks the user for consent to create or update a ticket.
Duplicate match score 0.90 or higher The agent offers to add the conversation to the matching ticket instead of creating a new one.
Session, feedback, and consent timeout 5 minutes A pending session, feedback request, or consent request expires.

Trigger the project workflows

The Support Ticket Agent is event-driven. The workflows run automatically when a user sends a message from Microsoft Teams, Slack, or App Builder chat to the Jitterbit custom API configured in Configure the Jitterbit custom API. The Cloud Datastore workflow includes controller operations that clean up expired records, which you can run from Studio as needed. All other workflows are triggered by upstream operations and are not intended to be run independently.

App Builder app

The Support Ticket Agent depends on the App Builder app included in the solution, which stores the data the agent needs to verify users and operate for each account. The agent reads from and writes to the app through its REST APIs, as listed in Prepare App Builder. The app holds the following information:

  • Users and knowledge bases: Each user's tenant, permissions, and assigned knowledge bases. The agent denies access to users who have no mapping.
  • ITSM configuration: The target ITSM system for each account and its credentials.
  • Interaction log: A record of each conversation, which the agent uses to build conversation history for later messages.

Troubleshooting

If you encounter issues, review the following logs for detailed troubleshooting information:

The following table lists messages that the agent sends to users when it cannot complete a request.

Message Likely cause What to do
User does not have access to the chat interface, please check with your admin. The agent could not find the user's mapping or permissions in App Builder. Verify the user's mapping and permissions in the App Builder app.
ERROR: User don't have access to the Support agent App. Please check with your admin for access. The agent could not verify the user's access to the app in App Builder. Verify the user's mapping and permissions in the App Builder app.
Could not get the target ITSM, please check with your admin. The agent could not retrieve the account's ITSM configuration from App Builder. Verify the ITSM configuration and credentials in the App Builder app.
Unable to retrieve response, please try again later or contact admin if the issue still persists The agent could not retrieve or update the user's active session in Cloud Datastore. Verify the Cloud Datastore access token and key storages.
Session Id could not be generated, please try again later or contact admin. The agent could not create a session ID. Review the operation logs for the request.
ERROR: Request Payload is Empty The platform sent a request with no message. Verify the chat platform configuration.

For additional assistance, contact Jitterbit support.