Skip to Content

Jitterbit Error Handling Agent

Overview

Jitterbit provides the Error Handling 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 monitors your organization's Jitterbit operations for errors, uses AI to classify them, groups related errors into incidents, identifies a likely root cause and remediation for each incident, and sends incident reports to your team.

On a schedule, the agent queries the operation logs of the environments you choose for operations that ended in an error or SOAP fault. It uses a large language model (LLM) to normalize each error and stores it in Jitterbit Cloud Datastore, counting repeated occurrences instead of storing duplicates. The agent then uses the LLM to classify each new error by technical category, severity, recurrence probability, service level agreement (SLA) risk, business impact, and confidence, and groups related errors into incidents. For each incident, the agent generates a root cause hypothesis and looks up remediation steps in the Jitterbit Knowledge Agent. The agent can send a CSV incident package through Slack, Microsoft Teams, or email, and it synchronizes errors and incidents to App Builder.

The agent performs the following tasks:

  • Queries Jitterbit operation logs on a schedule for operations that ended in an error or SOAP fault.
  • Uses AI to parse and normalize each error, and stores it in Cloud Datastore with a count of its occurrences.
  • Classifies errors by technical category, severity, recurrence probability, SLA risk, business impact, and confidence.
  • Groups related errors into incidents.
  • Generates a root cause hypothesis for each incident and looks up remediation steps in the Jitterbit Knowledge Agent.
  • Sends a CSV incident package through Slack, Microsoft Teams, or email.
  • Synchronizes errors and incidents from Cloud Datastore to App Builder.
  • Removes old records from Cloud Datastore.

This document explains how to set up and operate this solution. It covers architecture, prerequisites, and steps to install, configure, and operate the solution.

Solution architecture

This solution operates as a scheduled, headless agent. It has no chat interface: the agent runs on operation schedules and delivers results through notifications and App Builder. A typical run is handled as follows:

  1. On a schedule, the Error Handling Agent Scheduler operation starts a run. It first runs the Cleanup Old Error Data in Datastore operation to remove old records.
  2. The Error Data Ingestion Controller operation signs in to Jitterbit Harmony and queries the operation logs for operations with an ERROR or SOAP FAULT status in the environments listed in the Error_Source_Environment_IDs project variable. The query returns 100 records at a time and covers the period since the last ingested activity. On the first run, it covers the previous day.
  3. For each error, the agent retrieves the full error message from the logs, uses the LLM to parse and normalize it, and checks Cloud Datastore for the error's fingerprint. A new error is inserted into the Integration_Errors key storage. A repeated error updates the existing record's count and last seen time.
  4. If the log query returned records, the Error Handling Agent Flow operation runs classification. The agent retrieves unprocessed errors from Cloud Datastore and sends them to the LLM, which returns each error's technical category, severity, recurrence probability, SLA risk, business impact, and confidence. The agent saves the classifications.
  5. The agent groups the classified errors into incidents by technical category and a grouping key, and creates a new incident or updates the count of an existing one in the Incidents key storage.
  6. The agent runs root cause analysis for the incidents. It sends each incident to the LLM, which returns a root cause hypothesis and requests a remediation lookup. The agent looks up remediation steps in the Jitterbit Knowledge Agent, then saves the root cause hypothesis and remediation on the incident. The LLM also returns a fallback recommendation for use if the lookup fails.
  7. When classification and root cause analysis both complete, the CDS to App Builder Sync Scheduler operation sends new and updated errors and incidents to App Builder.
  8. On a separate schedule, the Incidents Notification Scheduler operation builds a CSV incident package and sends it through the notification endpoint you choose. After a successful send, the agent marks the included error events as notified and updates the incident statuses.

Workflow diagram

The following diagram shows the main workflow for the Error Handling 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 SCHED@{ shape: delay, label: "Operation schedules" } JSP@{ shape: hex, label: "
Error Handling
Agent" } HARMONY[Jitterbit Harmony
operation logs] LLM[fas:fa-brain
LLM] KA@{ shape: hex, label: "
Jitterbit
Knowledge Agent" } CDS@{ shape: hex, label: "fas:fa-database
Cloud Datastore" } AB@{ shape: hex, label: "
App Builder" } NOTIFY[fas:fa-bell
Slack, Teams, or email] SCHED -->|1. Start run| JSP JSP <-->|2. Query error logs| HARMONY JSP <-->|3. Parse, classify, and analyze| LLM JSP <-->|4. Look up remediation steps| KA JSP <-->|5. Store errors and incidents| CDS JSP -->|6. Sync incidents| AB JSP -->|7. Send incident package| NOTIFY

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.

Jitterbit Harmony

The agent signs in to the Jitterbit Harmony APIs with a Harmony user name and password to read operation logs from the environments you choose, and to create the Cloud Datastore key storages. The user must have access to the operation logs of the source environments and permission to create key storages in the target environment.

Large language model (LLM)

The agent uses an LLM to parse errors, classify them, and generate root cause analysis. You choose one of the following providers with the LLM_Choice project variable:

  • Azure OpenAI: You must have an Azure OpenAI deployment of a GPT model, the model's endpoint URL, and an API key. To use it, set LLM_Choice to Azure AI.
  • Gemini: You must have a Google Gemini API key and the name of the model to use.

Jitterbit Knowledge Agent

The agent looks up remediation steps in the Jitterbit Knowledge Agent through its external API. To use the lookup, you need the API URL and an API key. If the lookup fails, the agent continues processing, and the response includes the failure details.

Notification endpoints

The agent sends incident packages through one of the following endpoints, which you choose with the Notification_Endpoint project variable:

  • Slack: You must have a Slack workspace and a Slack app with a Bot User OAuth Token and permission to upload files to the channel that receives the package.
  • Teams: You must register an application in Microsoft Entra ID, as described in the Microsoft Teams connector prerequisites. You need the application's client ID and client secret, your tenant ID, and the user name and password of the account that the agent sends messages with.
  • Email: The email endpoint is preconfigured for the SendGrid Simple Mail Transfer Protocol (SMTP) server. You must have a SendGrid API key, or you can edit the endpoint to use your own SMTP server.

App Builder

The solution includes an App Builder app that receives errors and incidents from the agent through REST APIs. You must have access to an App Builder instance that hosts the app and an API key for the app's REST APIs.

Cloud Datastore

The agent uses Jitterbit Cloud Datastore to store errors, incidents, and their classifications. 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.

Incident classification and grouping

This section describes how the agent classifies errors and groups them into incidents. The agent applies these rules through the prompt it sends to the LLM and through the grouping logic in the Build Incident operation.

Error classification

For each error, the LLM returns a technical category, severity, recurrence probability, SLA risk, business impact, and confidence. The LLM assigns the technical category from the following rules:

Technical category Typical indicators
Network or Gateway Failure 504 Gateway Timeout, timeout, ECONNREFUSED, EHOSTUNREACH
Auth 401 Unauthorized, token expired, invalid_client, OAUTH_ERROR
Forbidden 403 Forbidden, Permission Denied, INSUFFICIENT_PERMISSION
Internal Server Error 500 Internal Server Error
Request No Longer Available 410 Gone
Page Not Found or Page Not Valid 404 Not Found
Bad Request or Invalid Request 400 Bad Request, INVALID_FLD_VALUE, USER_ERROR
Platform Transformation Error, JSON_PARSE_ERROR, Mapping Error
Data Database Error, null pointer, schema mismatch, NONEXISTENT_ID

The LLM then applies the following rules for the remaining fields:

Field Rules
Severity Critical: The category is Auth or Forbidden, or the message contains Connection Refused and the count is over 50.
High: The category is Internal Server Error, or Network or Gateway Failure with a count over 20.
Medium: The category is Bad Request or Page Not Found.
Low: The category is Data and the count is under 5.
Recurrence probability Certain: The category is Auth or Forbidden.
High: The count is over 10 and the error was seen over more than an hour.
Medium: The count is between 2 and 10.
Low: The count is 1 and the error is not an authentication error.
SLA risk High: The error was last seen in the last 15 minutes and the severity is Critical or High.
Medium: The severity is Medium and the count is increasing.
Low: The severity is Low, or the error has not been seen for over 24 hours.
Business impact Critical: The error affects important objects such as orders, invoices, payments, or customers, stops a sync, or involves authentication, authorization, or endpoint connectivity.
Moderate: The error is a transformation failure or SOAP fault.
Minimal: The error affects tasks, notes, or logs.
Confidence High: The message has a specific error code from another endpoint, such as NONEXISTENT_ID.
Medium: The error code is a standard HTTP status code but the message is generic.
Low: The message is missing and the payload is ambiguous.

Incident grouping

The agent groups classified errors into incidents with a grouping key built from the technical category and a second value that depends on the category:

Technical category Grouping key Incident context
Auth or Forbidden Category and organization System-wide access blockage.
Network or Gateway Failure Category and organization Infrastructure or connectivity instability.
Page Not Found or Page Not Valid Category and endpoint Broken mapping or missing resource type.
Bad Request, Invalid Request, or Data Category and endpoint Payload schema mismatch or data integrity issue.
Platform Category and normalized message Integration transformation or logic failure.
Internal Server Error or Request No Longer Available Category and normalized message Server-side code exception or crash.

If an incident with the same grouping key exists, the agent updates its count. Otherwise, the agent creates a new incident.

Incident package

The incident package is a CSV file named IncidentPackage_<date>_<GUID>.csv, with one row for each incident and the following columns: IncidentId, IncidentDate, Error, Endpoint, TechnicalCategory, RCA, and Remediation.

Installation, configuration, and operation

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

  1. Get the solution
  2. Configure project variables
  3. Create the Cloud Datastore key storages
  4. Prepare App Builder
  5. Configure the notification endpoint
  6. Test connections
  7. Deploy the project
  8. Review project workflows
  9. 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 Error Handling 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.

    Important

    The Cloud Datastore key storages must be created in the same environment as the Studio project. Select the environment where you want to run the agent.

  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.

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.

Jitterbit Harmony

Variable name Description
Jitterbit_API_Host The base URL of the Jitterbit Harmony API host, used to sign in and to create the Cloud Datastore key storages.
Jitterbit_Username The Harmony user name the agent signs in with.
Jitterbit_Password The password for the Harmony user.
Error_Source_Environment_IDs The environments to monitor for errors, as a comma-separated list of environment IDs, with each ID enclosed in double quotes.
Error_Handling_Agent_ProjectGUID The project GUID of this Studio project.
pagesize_errorRead The number of error messages to read for each page when ingesting errors.

The Jitterbit Cloud Service API endpoint, which the agent uses to retrieve detailed error messages from operation logs, is preconfigured with the NA region base URL. If your organization is in another region, edit the endpoint's base URL to use the base URL for your region:

Region Base URL
NA https://na-east.jitterbit.com/jitterbit-cloud-restful-service/
EMEA https://emea-west.jitterbit.com/jitterbit-cloud-restful-service/
APAC https://apac.jitterbit.com/jitterbit-cloud-restful-service/

Cloud Datastore

Variable name Description
CloudDataStore_Target_Environment_ID The ID of the environment where the key storages are created. The key storages and the Studio project must be in the same environment.
Cloud_Datastore_Access_Token The Cloud Datastore access token that the agent uses to read and write the key storages, including when it synchronizes data to App Builder.

LLM

Variable name Description
LLM_Choice The LLM provider to use. Set to Azure AI for Azure OpenAI, or to Gemini for Google Gemini.
Max_Output_Tokens The maximum number of output tokens for Azure OpenAI requests.
Azure_AI_Model_URL The endpoint URL of your Azure OpenAI model deployment.
azure_openai_api_key The API key for your Azure OpenAI deployment.
gpt_model The GPT model your Azure OpenAI deployment uses. The agent parses responses differently for older and newer GPT model families.
gemini_api_key_2 The API key for Google Gemini.
gemini_model The Gemini model to use.
gemini_max_tokens The maximum number of output tokens for Gemini requests.
input_rate_per_mtok The standard input token rate per million tokens, used to calculate the cost of Gemini requests.
input_cached_rate The cached input token rate per million tokens, used to calculate the cost of Gemini requests.
output_rate_per_mtok The output token rate per million tokens, used to calculate the cost of Gemini requests.

Jitterbit Knowledge Agent

Variable name Description
AIAgent_External_API_Url The URL of the Jitterbit Knowledge Agent external API.
JB_External_API_Key The API key for the Jitterbit Knowledge Agent external API.

Notifications

Variable name Description
Notification_Endpoint The endpoint that receives incident packages. Set to Slack, Teams, or Email.
Slack_Token The Bot User OAuth Token for the Slack app.
Slack_channel_id The ID of the Slack channel that receives incident packages.
MS_Teams_Tenant_ID The Microsoft Entra tenant ID.
MS_Teams_Client_ID The client ID of the registered application.
MS_Teams_Client_Secret The client secret value of the registered application.
MS_Teams_Username The user name of the Microsoft Entra account that the agent sends messages with.
MS_Teams_User_Password The password of the Microsoft Entra account.
Email_From_Address The sender email address for incident packages.
Email_Alert_Recipients The recipients of incident packages, as a comma-separated list of email addresses.

App Builder

Variable name Description
BaseUrl The base URL of your App Builder instance.
APIKey The key name for API key authentication to App Builder (for example, X-API-Key).
APIKeyIncidents The API key value for authentication to App Builder.
pathIncidents The service path of the App Builder REST API that receives incidents.
pathIncidentError The service path of the App Builder REST API that receives incident errors.

Classification and root cause analysis endpoints

The agent can run classification and root cause analysis either as built-in AI agent workflows or by calling API endpoints. The APICall variable selects which one the agent uses. Set the other two variables only if you use API endpoints.

Variable name Description
APICall Selects how the agent runs classification and root cause analysis. When enabled, the agent calls the API endpoints. Otherwise, it runs the built-in AI agent workflows.
Classification_Endpoint_API_URL The service URL of the classification endpoint, used when APICall is enabled.
RCA_Remediation_Endpoint_API_URL The service URL of the root cause analysis and remediation endpoint, used when APICall is enabled.

Create the Cloud Datastore key storages

The solution creates the two key storages that it needs. To create them:

  1. Set the CloudDataStore_Target_Environment_ID, Jitterbit_API_Host, Jitterbit_Username, and Jitterbit_Password project variables.

  2. Run the Create Error Handling Tables operation. This signs in to Harmony and creates the Integration_Errors and Incidents key storages in the target environment, each with a data retention of 100 days.

  3. Create a Cloud Datastore access token in the environment where the key storages were created, and enter it in the Cloud_Datastore_Access_Token project variable.

The following tables describe the key storages. The Key, AlternativeKey, and Value fields are present by default.

Integration_Errors

Field name Type Description
error_code Text The error code.
error_category Text The category of the error.
raw_payload Big Text The raw error payload.
source Text The source of the error.
severity Text The severity assigned by classification.
organization_id Text The ID of the organization where the error occurred.
first_seen Text When the error was first seen.
last_seen Text When the error was last seen.
endpoint Text The endpoint involved in the error.
recent_ids Big Text The IDs of recent occurrences.
count Number The number of times the error occurred.
processed Text Whether the error has been processed.
technical_category Text The technical category assigned by classification.
recurrence_probability Text The recurrence probability assigned by classification.
sla_risk Text The SLA risk assigned by classification.
business_impact Text The business impact assigned by classification.
confidence Text The confidence assigned by classification.
core_error Big Text The normalized error message.
environment_and_agent Text The environment and agent where the error occurred.
project_and_operation Text The project and operation where the error occurred.

Incidents

Field name Type Description
last_seen Text When the incident was last seen.
incident_count Text The number of errors grouped into the incident.
rca_hypothesis Big Text The root cause hypothesis.
remediation Big Text The remediation steps.
status Text The status of the incident.
incident_context Big Text The incident context from the grouping rules.
endpoints Big Text The endpoints involved in the incident.
technical_category Text The technical category of the incident.
core_error Big Text The normalized error message.

Prepare App Builder

The solution includes an App Builder app, listed under Apps in the solution's Included assets, as an App Builder release package (an .LP file). The Main - CDS to App Builder Sync workflow sends errors and incidents to the app's REST APIs. 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

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 following for use in the App Builder project variables:

  • The base URL of your App Builder instance.
  • An API key name and value for API key authentication.
  • The service paths of the REST APIs that receive incidents and incident errors.

Configure the notification endpoint

Configure the endpoint that matches the Notification_Endpoint value you chose:

  • Slack: Create a Slack app with a bot user that can upload files, install it to your workspace, and add it to the channel that receives incident packages. Retain the Bot User OAuth Token for the Slack_Token variable and the channel ID for the Slack_channel_id variable.
  • Teams: Register an application in Microsoft Entra ID, grant it the required Microsoft Graph permissions, and set the MS_Teams_Tenant_ID, MS_Teams_Client_ID, MS_Teams_Client_Secret, MS_Teams_Username, and MS_Teams_User_Password variables.
  • Email: Open the Email Endpoint in the project and enter the password for the SMTP account. The endpoint uses the SendGrid server smtp.sendgrid.net and the user name apikey, so enter a SendGrid API key as the password. To use another SMTP server, edit the endpoint's host, user name, and password.

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.

Review project workflows

The Studio project contains 16 workflows that implement the Error Handling Agent functionality, organized into four functional groups.

Scheduling and ingestion

Workflow Description
Main - Error Handling Scheduler Runs the full agent flow with the Error Handling Agent Scheduler operation: cleanup, ingestion, classification, root cause analysis, and synchronization to App Builder. The README operation contains installation and testing guidance.
Main - Error Data Ingestion Signs in to Harmony, queries operation logs for errors, extracts and normalizes each error message, and inserts new errors or updates the counts of existing errors in Cloud Datastore.
Main - Error Handling Agent Runs the Error Handling Agent Flow operation, which calls the classification service and the root cause analysis and remediation service for errors and incidents.
Test - Error Data Ingestion Sends a simulated error to the ingestion operation to test ingestion, and logs the failure if ingestion does not return a successful status.

AI analysis

Workflow Description
Sub Agent - Error Classification Endpoint Sends errors to the LLM with the classification rules and returns each error's classification as JSON.
Sub Agent - Root Cause Analysis Endpoint Sends incidents to the LLM for a root cause hypothesis, then looks up remediation steps in the Jitterbit Knowledge Agent when the LLM requests a lookup. If the lookup fails, the response includes the failure details.
Main - LLM Call Routes LLM requests to Azure OpenAI or Google Gemini based on the LLM_Choice variable, and parses the response. For Azure OpenAI, it parses responses differently for older and newer GPT model families.

Data management

Workflow Description
Utility - Cloud Datastore Setup Creates the Integration_Errors and Incidents key storages.
Utility - Error Events CRUD Queries error events and updates their classification, processed status, and incident links.
Utility - Incidents CRUD Builds, queries, creates, and updates incidents, including their counts, statuses, and remediation.
Utility - Cloud Datastore Data Cleanup Queries old error and incident records and deletes them when the number of records passes a threshold.
Main - CDS to App Builder Sync Sends new and updated incidents and incident errors from Cloud Datastore to App Builder, using cached timestamps to send only changes.

Notifications

Workflow Description
Main - Incidents Notification Endpoint Builds the CSV incident package from paginated incident data, sends it through the chosen endpoint, and then marks the included error events and incidents as notified.
Utility - Email Notification Sends the incident package by email.
Utility - Slack Notification Uploads the incident package CSV to a Slack channel.
Utility - Teams Notification Sends the incident package to Microsoft Teams.

Trigger the project workflows

The Error Handling Agent runs on operation schedules.

Note

Operation schedules are not included in the project export and must be configured manually in Studio after deployment. Schedule the following operations:

  • Error Handling Agent Scheduler: Runs ingestion, classification, root cause analysis, and synchronization to App Builder. The run starts with cleanup of old records.
  • Incidents Notification Scheduler: Sends the incident package and updates statuses.

To run the agent immediately, deploy the project and run the Error Handling Agent Scheduler operation. To test notifications, run the Incidents Notification Scheduler operation. All other workflows are triggered by upstream operations and are not intended to be run independently.

The agent keeps the time of the last ingested activity in a cache, so each run ingests only new errors. To test with older errors, edit the script in the Query Operation Logs operation to set the last activity from and until dates and the organization ID. Remove these values after testing.

Troubleshooting

If you encounter issues, review the operation logs for detailed troubleshooting information.

The scheduler operation writes the following messages to the operation log.

Message Likely cause What to do
Error Handling Agent Flow failed to complete Classification or root cause analysis did not complete. The log includes the error details. Review the operation logs for the Error Handling Agent Flow operation and its LLM calls.
CDS to App Sync Failed to run. The synchronization to App Builder did not run successfully. Verify the App Builder base URL, API key, and service path variables.
No Incident and Error Data to be pushed to App Builder No new or updated incidents or errors exist to synchronize. No action is needed.

For additional assistance, contact Jitterbit support.