# Embed AVCodex into Kajabi

Add your AVCodex agent to a Kajabi site, either as a site-wide floating widget or a per-page iframe.

---

Kajabi is a common host for training portals and course-based programs. If you deliver AV certification training, onboarding curricula, or a partner enablement program on Kajabi, you can embed an AVCodex agent alongside the content so learners can ask questions without leaving the lesson.

There are two placements, and they solve different problems.

## Option A: Site-wide floating widget

Best when you want one assistant available everywhere on the site.

1. In your AVCodex app, go to **Publish** and copy the chat widget embed snippet. See [Embed Chat Widget](/docs/guides/embed-chat-widget).
2. In Kajabi, open **Website** > **Settings** > **Code Injection** (some plans label this **Custom Code**).
3. Paste the snippet into the site-wide footer or header injection field.
4. Save and preview.

The bubble now appears on every page of the site, including course pages and the member area.

## Option B: Per-page iframe

Best when the assistant should only appear inside a specific lesson or module, or when you want it inline in the page body rather than floating.

1. Copy the iframe embed code from the same **Publish** section.
2. In the Kajabi page or lesson editor, add a **Custom Code** block where you want the chat to appear.
3. Paste the iframe code.
4. Set a height that suits the placement. Chat embeds generally need at least 500 to 600 pixels to be usable.

## Passing lesson context

The iframe URL accepts query parameters, which means you can tell the agent which lesson the learner is on:

```
?module=signal-flow&lesson=dsp-gain-structure
```

Combine this with [Session Lifecycle Webhooks](/docs/guides/session-lifecycle-webhooks) and you get per-lesson analytics on where learners actually get stuck, which is far more useful than course completion rates.

## Authentication considerations

Kajabi members are already authenticated to Kajabi, but that session does not carry into the embedded chat automatically. You have three options:

- **Open access.** Simplest. Anyone who reaches the page can use the agent. Fine for low-sensitivity content.
- **Email-restricted access.** Use [Access Control](/docs/guides/access-control) to limit the agent to known member emails. Members sign in once to the chat.
- **Pre-authenticated sessions.** If you can run a small backend alongside Kajabi, use [Bring Your Own Auth](/docs/guides/bring-your-own-auth) to mint a session from the member's verified identity so there is no second login.

## Troubleshooting

- **Widget doesn't appear.** Kajabi caches aggressively. Hard-refresh, and confirm the code injection saved on the correct site rather than a single page.
- **Iframe is cut off.** Increase the height on the Custom Code block. Kajabi does not auto-size iframes.
- **Widget appears on the sales page but not the member area.** Those are separate injection surfaces in Kajabi. Add the snippet to both.

*AVCodex · Your AV expertise. Amplified by AI.*
