Florian Besnard - Hi team, in the AppEmbed, I w...
# dev-help
f
Hi team, in the AppEmbed, I want to set the default auto_mode usage for the spotter in the AppViewConfig setting ?
a
message has been deleted
s
Solution: I could not find
auto_mode
as a supported
AppViewConfig
property in the official ThoughtSpot docs for
AppEmbed
. For
AppEmbed
, Spotter-related config in
AppViewConfig
is exposed via properties like
spotterSidebarConfig
(sidebar behavior/title), but not an
auto_mode
default toggle. So if you’re trying to set a default Spotter “auto mode” in
AppViewConfig
, it is not currently documented/supported.
Copy code
javascript
import { init, AuthType, AppEmbed } from '@thoughtspot/visual-embed-sdk';

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

const app = new AppEmbed('#tsEmbed', {
  // Supported Spotter-related AppViewConfig example:
  spotterSidebarConfig: {
    enablePastConversationsSidebar: true,
    spotterSidebarTitle: 'My Conversations',
  },
  // No documented `auto_mode` property here
});

app.render();
Suggestions: - If you saw
auto_mode
in network calls/internal payloads, treat it as internal/undocumented and avoid relying on it. - If you need default Spotter behavior at load time, use documented Spotter/AppEmbed configs only, and raise a feature request with ThoughtSpot Support/Product for an official
auto_mode
setting in SDK config. - Share your SDK version + cluster version when raising that request (behavior can vary by release). Docs: - AppViewConfig (
spotterSidebarConfig
): https://developers.thoughtspot.com/docs/Interface_AppViewConfig#_spottersidebarconfig - ThoughtSpot Developer Docs home: https://developers.thoughtspot.com/docs
f
Ok, but i want to force the user to use the automatic dataset 'worksheetId':'auto_mode' in the parameter when calling AppEmbed function
Copy code
typescript
new AppEmbed(domSelector, {
  modularHomeExperience: true,
  updatedSpotterChatPrompt: true,
  isUnifiedSearchExperienceEnabled: false,
  homePageSearchBarMode: HomePageSearchBarMode.AI_ANSWER,
    });
I use
@thoughtspot/visual-embed-sdk
version :
1.49.3