Vitaly Zisserman - Hi ThoughtSpot team,I'm in...
# dev-help
v
Hi ThoughtSpot team, I'm integrating Spotter with our application and listening to Spotter events from the parent application. Currently, I'm handling the SpotterQueryTriggered event, which works well for capturing the user's question. I use that event to send the question text to Pendo for analytics. However, I'm trying to capture the scenario where Spotter does not return an answer and instead displays suggested hints or follow-up prompts (for example, suggestions to rephrase the question or recommended queries). I couldn't find an event that is fired for this case, or another way to access the text of those suggested hints. I do see the EditLastPrompt and DeleteLastPrompt events, but neither of those appears to include the suggested prompt text in the event payload. Could you clarify: Is there an event that is emitted when Spotter cannot answer a question and displays suggested hints? If so, which event should I subscribe to? Is the text of the suggested hints available in the event payload or through another API? If there isn't an event today, what is the recommended way to capture those suggestions for analytics integrations such as Pendo? Our goal is to send both the original user query and any suggested hints displayed by Spotter to Pendo. Thanks! https://cdn.discordapp.com/attachments/1143209464875462756/1521208418126270665/image.png?ex=6a43ff3d&is=6a42adbd&hm=838b6bdf60d9f0b861e43c2a7863539013cdda6be9935b4e4e99ae6d8b93f468&
a
message has been deleted
s
Solution: Based on current ThoughtSpot docs, there is no documented Spotter embed event specifically for “no answer shown with suggested hints” and no documented payload field that exposes those suggestion texts directly. What is documented for Spotter includes: -
EmbedEvent.SpotterQueryTriggered
-
EmbedEvent.LastPromptEdited
-
EmbedEvent.LastPromptDeleted
-
EmbedEvent.ResetSpotterConversation
-
EmbedEvent.PreviewSpotterData
- plus general events like
EmbedEvent.Error
,
EmbedEvent.Load
, etc. So for your Pendo use case today: 1. Keep logging
SpotterQueryTriggered
(original user question). 2. Optionally log
LastPromptEdited
/
LastPromptDeleted
/
ResetSpotterConversation
as downstream interaction signals. 3. Treat “no answer + suggestions shown” as a UI state not currently exposed as a first-class embed event payload (per available docs). 4. If you need the exact suggestion text, there is no official event/API in the docs that provides it directly.
Copy code
javascript
import {
  init,
  AuthType,
  SpotterEmbed,
  EmbedEvent,
} from "@thoughtspot/visual-embed-sdk";

init({
  thoughtSpotHost: "https://your-ts-host",
  authType: AuthType.None,
});

const spotter = new SpotterEmbed("#ts-spotter", {
  worksheetId: "YOUR_WORKSHEET_ID",
});

spotter.on(EmbedEvent.SpotterQueryTriggered, (payload) => {
  // Send original user query metadata to Pendo
  window.pendo?.track?.("spotter_query_triggered", { payload });
});

spotter.on(EmbedEvent.LastPromptEdited, (payload) => {
  window.pendo?.track?.("spotter_last_prompt_edited", { payload });
});

spotter.on(EmbedEvent.LastPromptDeleted, (payload) => {
  window.pendo?.track?.("spotter_last_prompt_deleted", { payload });
});

spotter.on(EmbedEvent.ResetSpotterConversation, (payload) => {
  window.pendo?.track?.("spotter_conversation_reset", { payload });
});

spotter.on(EmbedEvent.Error, (payload) => {
  window.pendo?.track?.("spotter_error", { payload });
});

spotter.render();
Suggestions: - If your product requirement is to capture the actual suggestion strings, raise this as a feature request with ThoughtSpot Support/Product (requesting an event + payload for fallback suggestions). - Avoid DOM scraping suggestion text for analytics unless you explicitly accept fragility (UI markup can change). - Add a server-side analytics schema now (query submitted, answered vs not answered, edited, deleted, reset) so you can plug suggestion text later if ThoughtSpot exposes it. Docs: - Embed events enum (Spotter events): https://developers.thoughtspot.com/docs/Enumeration_EmbedEvent#_spotterquerytriggered - SDK changelog (Spotter events introduced): https://developers.thoughtspot.com/docs/embed-sdk-changelog#_version_1390_july_2025 - Spotter embed docs landing: https://developers.thoughtspot.com/docs
s
@Vitaly Zisserman above solution worked for you?