跳至主要内容

AgentBuilder allows you to embed your AI application into your business website, enabling features like AI customer service and business knowledge Q&A with your data in minutes.


How to Embed

  • Click the Embedded button on the WebApp card.
  • Copy the embedding code and paste it into your website where you want the AI app to appear.

1. Using <iframe>

  • Copy the iframe code to the desired tag (e.g., <div>, <section>) on your website.
  • Embed with iframe

2. Using <script>

  • Copy the script code to the <head> or <body> tag of your website.
  • Embed with script

Parameter Descriptions

Parameter NameValueRequiredDescription
newConversationtruefalseStart a new conversation.
questionHifalseAuto-ask this question when the dialog opens.
showFullScreentruefalseShow chatbot full screen control buttons.
fullScreenShowHeaderBoxShadowtruefalseShow parent app header shadow in full screen.
hideHeadertruefalseHide chatbot's top header in mobile mode.
variableskey: 'value'falseDefault variable values for new conversations. Use key: hide: true, value: 'xxx' to hide.
themedarkfalseChatbot theme: light, dark, lightTransparent, darkTransparent.
langen-USfalseChatbot language: en-US, zh-Hans, zh-Hant. Defaults to chatbot settings if not set.
answerIframeStylekey: 'value'falseCustom styles for the answer iframe. Example: width: "100%", height: "1200px".
getCitationtruefalseGet citation info.

Note: When embedding with iframe, use the above parameters to create the iframe link as needed.

On this page ...

Is this helpful?