Questions? We are here to help!

Connect a Space App query widget

Connect a query widget so your team can look up information from another system while working on a ticket or chat.

You need the Admin role in the space. Ask the person who manages your other system for its query endpoint: the full public HTTPS address that accepts the lookup request and returns the results.

Open Query Widget settings

  1. Open Settings > Spaces.
  2. Open the space’s menu and select Settings.
  3. Open Apps, then Create App.
  4. Under Query Widget, select Create.

Enter the connection details

  1. Enter a short Name that your team will recognize.
  2. Enter the full Endpoint URL.
  3. Under Default Sources, choose Email, Phone, Custom, or a combination. These are the values the widget uses to find the customer’s information.
  4. Coordinate the API Key with the person managing the endpoint. HEDESU sends it in the X-Hedesu-Api-Key header. Use Copy when configuring that connection.
  5. If Spark uses the widget, add Instructions for Spark Agent describing how it should use the returned information. The input accepts up to 2,000 characters.

Prepare the response

The person managing the endpoint can use Sample cURL to see the request built from the current form values. HEDESU sends a POST request with the selected lookup values.

The response uses these fields:

  • panel: information displayed to staff in the ticket or chat.
  • meta: information available to Spark as context, without appearing in the staff results panel.
  • links: optional HTTPS links that staff can open from the results.

The form shows a Response Display Contract example for the person connecting the service.

Test and save

  1. Enter a known sample in Test Email, Test Phone or Test Custom.
  2. Select Test Endpoint and review the result.
  3. Once the test succeeds with the current connection details, select Save App.
  4. Check that the app appears in the space’s Apps list.

Testing and saving are separate actions. If the form asks you to test again after changing the connection details, run Test Endpoint again before saving.

Your team can then attach the widget to a ticket or chat that has a contact and run a lookup.