For the complete documentation index, see llms.txt. Markdown versions of documentation pages are available by appending .md to page URLs.
Skip to content

Spark

Spark API provides two endpoints: agent-to-agent and handoff to Spark.

Spark agent-to-agent API overview

Connect your existing AI agent to Spark using the Agent-to-Agent (A2A) protocol. Employees keep working in their current chat tools, and Spark answers through a webhook you host.

The process consists of the following steps:

  1. The employee makes a request in your existing chatbot.

  2. Your agent reads the Spark agent card and sends the request to Spark.

  3. Spark processes the request and delivers its response to your webhook.

  4. Your agent returns the response to the employee and reuses the contextId and taskId for follow-up messages.

Spark handoff API overview

Spark provides a standard handover mechanism that allows third-party chatbots to transfer a live conversation to Spark without losing context. The process consists of the following steps:

  1. Employees initiate an IT request through a familiar enterprise chatbot interface.

  2. The chatbot forwards the user message to Spark using the Handoff API.

  3. Spark responds in Microsoft Teams and notifies the employee.

  4. The employee continues the resolution in Microsoft Teams by interacting with Spark.

This ensures a seamless employee experience and minimizes development effort.

Setting up API credentials

To set up an integration with the Nexthink API, you must first create a set of API credentials in your instance that the external application or service uses to access the Spark API. Refer to the API Credentials documentation.

Configuring Spark for API

Register your webhook URL under Third-party credentials in Administration. Select HTTPS as the protocol. The URL must match the webhook URL that your agent sends in each request.

Refer to Agent To Agent for more information about request structure, authentication, and supported parameters

The Spark handoff API does not require any configuration within the Nexthink platform. Redirection is currently handled automatically through the Spark Microsoft Teams application.

Refer to Handoff API for more details about request structure, authentication requirements, and supported parameters.

Last updated

Was this helpful?