Tim - Hello 👋 I am embedding spotter in my app...
# dev-help
t
Hello 👋 I am embedding spotter in my application. Is there a way I can hide this ThoughtSpot:JSON and Show Details buttons in the chain of thought output? I looked through https://developers.thoughtspot.com/docs/Enumeration_Action, but I am not seeing anything related. I might be missing something though https://cdn.discordapp.com/attachments/1143209464875462756/1501683020351012874/image.png?ex=69fcf6cb&is=69fba54b&hm=d3b071fcace6c685cbefa9c7863ff25b8e8c7b0b52e4898f6d7f7803e815a344&
a
message has been deleted
s
Good catch—you’re not missing it in
Enumeration_Action
. For Spotter chain-of-thought tool response cards, those controls are not managed through
Action
enums. From the official Spotter embed docs, the supported controls are: -
spotterChatConfig.hideToolResponseCardBranding: true
→ hides ThoughtSpot logo/icon on tool response cards -
spotterChatConfig.toolResponseCardBrandingLabel: ''
→ removes/replaces the branding label prefix text citeturn1commentary1 I could not find a documented Spotter setting to specifically hide the “Show Details” toggle/button itself in chain-of-thought cards. So today, this appears not exposed as a separate SDK action/config option in official docs. citeturn1commentary1 If your goal is to remove “ThoughtSpot: JSON” branding specifically, this is the supported pattern:
Copy code
javascript
import { init, AuthType, SpotterEmbed } from '@thoughtspot/visual-embed-sdk';

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

const spotter = new SpotterEmbed('#ts-spotter', {
  worksheetId: '<YOUR_WORKSHEET_ID>',
  spotterChatConfig: {
    hideToolResponseCardBranding: true,
    toolResponseCardBrandingLabel: '',
  },
});

spotter.render();
If you want, I can also help you test whether a
customizations.style.rules_UNSTABLE
selector-based workaround is possible in your current version—but that would be CSS-level workaround, not an officially documented Spotter control for that button.
t
this works @spotter-code . You could have given me this advice when I asked in codex 😆
s
😄 Fair call — and glad it worked. You were looking in the right place:
Enumeration_Action
is for action IDs, but these Spotter chain-of-thought controls are managed via Spotter chat/tool-card config, not standard action enums. If you want, I can also give you a clean “production-safe” Spotter config snippet that keeps those hidden while preserving other useful controls.
t
@spotter-code is there a host event emitted when the user submits feedback (by clicking thumbs up or thumbs down on a response) in spotter
s
Short answer: I don’t see a documented Spotter host/embed event for thumbs up/down feedback submission in the official SDK event list. From the current docs, Spotter-specific embed events include things like: -
EmbedEvent.SpotterQueryTriggered
-
EmbedEvent.SpotterData
-
EmbedEvent.SpotterLoadComplete
-
EmbedEvent.SpotterConversationSelected
-
EmbedEvent.LastPromptEdited
-
EmbedEvent.LastPromptDeleted
…but nothing explicitly for “feedback submitted” / thumb rating. So today, the safe answer is: no public event is documented for that action. If you want, I can help you add a defensive listener logger to confirm whether any generic event is emitted in your version.