Skip to content

Commit 80648a2

Browse files
Fix scripts and images
1 parent e189912 commit 80648a2

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed

content/guides/embed/box-embed.md

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ To embed a hub in AI Chat mode:
196196
6. Copy the embed code.
197197

198198
<Message type='notice'>
199-
If you experience issues with the Box Hubs AI Chat embedding, regenerate the embed code to get the latest version by repeating steps 1-6 above.
199+
If you experience issues with the Box Hubs AI Chat embedding, regenerate the embed code to get the latest version of the script by repeating steps 1-6 above.
200200
</Message>
201201

202202
### Chat button
@@ -216,17 +216,29 @@ The **Chat button** mode supports the following parameters:
216216
| `data-button-text` | No | Custom text to display on the chat button. Default: `Box AI`. This value is also used for the button's area label for accessibility. |
217217
| `data-shared-link` | No | Optional shared link for hub access. If not provided, the chat loads only for users who are collaborators on the hub. |
218218

219+
The following example shows a fully configured chat button with all available parameters:
220+
221+
```html
222+
<script
223+
src="https://cdn01.boxcdn.net/embeddable-ai-chat-script/2.7.0/box_integrations_ai_chat_button.js"
224+
data-hub-id="123456789"
225+
data-custom-box-domain="mycompanydomain.app.box.com"
226+
data-shared-link="abcdefghijklmnopqrst123"
227+
data-button-text="Ask our HR chatbot">
228+
</script>
229+
```
230+
219231
### Chat widget
220232

221233
In **Chat widget** mode, the AI chat widget is embedded directly on page load. It is generated as an `iframe` and displays the full chat interface immediately.
222234

223-
<ImageFrame center width="400" border>
235+
<ImageFrame shadow>
224236
![Chat widget mode](./chat-widget.png)
225237
</ImageFrame>
226238

227239
#### Chat widget parameters
228240

229-
The **Chat button** mode supports the following parameters:
241+
When using the **Chat widget** mode, the generated `iframe` supports the following AI Chat-specific parameters in addition to standard `iframe` attributes:
230242

231243
| Parameter | Required | Description |
232244
|-----------|----------|-------------|
33.5 KB
Loading

0 commit comments

Comments
 (0)