Mintlify Widget — an embedded agent that supports your users anywhere
Connect questions, answers and sources through one lightweight entry point, integrating the assistant naturally into the existing page.
View HTML source
<!doctype html><html lang="zh-CN"><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Mintlify Widget — an embedded agent that supports your users anywhere · sequence</title><style>html,body{margin:0;width:100%;height:100%;overflow:hidden;background:#eef0e6}canvas{display:block;width:100%;height:100%;object-fit:contain}</style><body data-mode="sequence"><canvas width="1000" height="600"></canvas><script src="data.js"></script><script src="common.js"></script><script src="scene.js"></script><script src="bridge.js"></script></body></html>Motion and composition
Local motion · Composition rules
Introduce the entry point before demonstrating the interaction

Keep a small assistant mark on a pale beige-green background, with text continuing on both sides of it. The code card provides only a brief explanation of installation capability and should not occupy the whole segment.
Use matching corner radii for the button and input, and reserve green for the interaction focus.
A single button expands into a conversation panel
View HTML source
<!doctype html><html lang="zh-CN"><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Mintlify Widget — an embedded agent that supports your users anywhere · sequence</title><style>html,body{margin:0;width:100%;height:100%;overflow:hidden;background:#eef0e6}canvas{display:block;width:100%;height:100%;object-fit:contain}</style><body data-mode="clip" data-start="7.8" data-end="11.5"><canvas width="1000" height="600"></canvas><script src="data.js"></script><script src="common.js"></script><script src="scene.js"></script><script src="bridge.js"></script></body></html>Expand the container first, then show suggested questions and the input. Leave room for the answer after submission. Maintain the reading direction as the camera approaches the panel.
Provide expandable sources after the answer
View HTML source
<!doctype html><html lang="zh-CN"><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Mintlify Widget — an embedded agent that supports your users anywhere · sequence</title><style>html,body{margin:0;width:100%;height:100%;overflow:hidden;background:#eef0e6}canvas{display:block;width:100%;height:100%;object-fit:contain}</style><body data-mode="clip" data-start="14" data-end="16.8"><canvas width="1000" height="600"></canvas><script src="data.js"></script><script src="common.js"></script><script src="scene.js"></script><script src="bridge.js"></script></body></html>Group sources in one list, highlighting only the current row as the cursor moves through it. After the demonstration, collapse back to the entry point and leave the brand.
Replace scenario content
The user's question, answer, and sources should correspond to each other. When adapting to another product, retain the single entry point and complete question-and-answer chain.
Sections and rhythm
Click a section to seek to it in the choreography example above.






Visual references · Discrete still frames
Creating other themes
- Replace the assistant brand, user question, and sources; preserve the causal chain of entry point→question→answer→source lookup.
- Show only one short question at a time, keep answers to 4–6 lines, and retain around three sources.
Production constraints
Star-shaped assistant mark / Embed-code card / Floating entry point / Conversation panel / Source list
- Use a small mark to carry two lines of copy first, then move into the code card and actual usage.
- After the button expands, maintain the hierarchy of input, answer, and sources; use angled camera views only to emphasize the current operation.
- Highlight source-list rows in sync with cursor movement; return to the short proposition after the interaction ends.