Orb allows you to set a number configuration settings to control things like when the Orb connects, to which integration it connects, static string etc. Here is an example of snippet of Orb being initialized with a number of custom settings.
The URL of the Meya grid platform the Orb will connect to.
Usually this is set to
The ID of Meya app that Orb will connect to. You can find your app ID under you app's Settings page in the Meya Console.
The ID of the integration that the Orb will connect to. This ID is set in BFML when you added the Orb integration to your app.
When adding an integration to an app the ID can either be set manually using the
This specifies whether the Orb should automatically connect when it is initialized.
Note, if you are deploying the Orb to a web page with a lot of user traffic, it is recommended to set this to
This will allow you reduce your MAU (Monthly Active Users) usage.
This is a custom callback that will be run when the Orb first connects to the Grid.
Note, that this is only run the first time the Orb successfully connects but won't run again when the Orb is in a connection retry loop.
The custom page context object that can be used to send custom data to the bot.
See the Page context page for more detail.
A list of Orb event entries to initialize the Orb with.
This setting is mainly for advanced and debugging use cases. By default the Orb will always receive a list of event entries from the Orb integration.
The unique Meya ID of the current user connecting to the app.
A user's ID can be found in your app's Users view.
This setting is mainly for advanced and debugging use cases. By default the Orb will generate a unique integraiton user ID, which is stored in local storage, and the Orb integration will generate a unique user ID for the given integration user ID.
An object that stores each user's meta data e.g. name, avatar, type.
This setting is mainly for advanced and debugging use cases. By default the Orb will always receive the active user data from the Orb integration.
This allows you to initialize the Orb with a specific magic link ID.
See the Magic Links page for more detail.
This allows you to set a custom Orb integration user ID.
This setting is mainly for advanced and debugging use cases. By default the Orb will always generate a random integration user ID and store it in local storage.
This allows you to set a custom Orb integration thread ID.
This setting is mainly for advanced and debugging use cases. By default the Orb will always generate a random integration thread ID and store it in local storage.
This allows you to set a custom Orb session token.
This setting is mainly for advanced and debugging use cases. By default the Orb will always generate a random session token and store it in local storage.
When set to
This allows the Orb to identify an existing user when they return to the same page/s.
This is a string containing a standard HEX color code.
The string that appears in the Orb's text input box.
The bot can specify that the Orb's text input
The text of file upload button
The text of the image/photo upload button.
The text of the button to open the phone's image
The text of the drop area when a file is dragged onto the Orb.
Updated 2 months ago