Skip to content

Copy the embed shortcode

The full-page chat surface is embedded via the [mga_chat_app] shortcode. Each bot has its own shortcode — there is no “one shortcode for everything.” The Embed tab generates the snippet pre-filled with the bot you’ve selected in the Bot workspace dropdown.

  1. Open the customizer for the bot you want to embed. (MGA WP → pick a bot in the dropdown.)

  2. Click “Embed” in the sidebar’s Chat app sections.

  3. Copy the value from the read-only field. The shortcode contains the bot’s portable public_id, so it works across reinstalls and even across WordPress sites that share the same MyGPT Assistants account.

  4. Paste it into the Gutenberg block of your choice (a Shortcode block, a Custom HTML block, or a classic editor). Save the page. Visit it — the full-page chat surface renders inline.

Chat App Customizer
Soporte CCreators — Embed
[mga_chat_app public_id=“a8d3-…-f72c”]

Copy shortcode

Customization is stored per bot. This shortcode only needs the bot identifier.

Pick a different bot in the dropdown and the Embed tab regenerates the snippet with that bot’s public_id. There is no global “the plugin’s shortcode” — every bot owns its own.

Chat App Customizer
Sales Concierge — Embed
[mga_chat_app public_id=“b71f-…-09ae”]

Copy shortcode

Customization is stored per bot. This shortcode only needs the bot identifier.

The [mga_chat_app] shortcode also accepts per-embed attribute overrides — useful when you want the same bot to render differently on different pages (e.g. a darker theme on a marketing page, a narrower max-width inside a sidebar).

AttributeTypeExample
public_idstringpublic_id="a8d3-…-f72c" — required (or bot_id="N").
heightpx / vh / %height="100vh"
themelight / dark / autotheme="dark"
primary_colorhexprimary_color="#3b82f6"
max_widthCSS lengthmax_width="640px"
sidebartrue / falsesidebar="false"
require_wp_logintrue / falserequire_wp_login="true"
submit_on_entertrue / falsesubmit_on_enter="false"

Example:

[mga_chat_app public_id="a8d3-…-f72c" theme="dark" max_width="640px" sidebar="false"]

Attributes only override the customizer config for that specific embed. The saved customizer config stays untouched.

Next: Require WordPress login →.