- Do we need to change our content-security policy?
- For the standard embed, three entries: our script origin in script-src, our API origin in connect-src, and 'unsafe-inline' in style-src, because the assistant styles itself inside its own shadow root. Where your policy cannot allow those, the iframe variant runs the assistant, its styles and every network call inside a frame served from the API origin, so your page needs only our script origin in script-src and the API origin in frame-src. The iframe variant is switched on by request.
- Can our own interface open the assistant?
- Yes, with the standard embed: your own button can open, close or toggle it by dispatching a window event, with no reference to the widget code. The iframe variant runs in its own window and does not take these events.