> ## Documentation Index
> Fetch the complete documentation index at: https://docs.zazubot.com/llms.txt
> Use this file to discover all available pages before exploring further.

# WordPress

zazubot has a native [WordPress plug-in](https://wordpress.org/plugins/typebot/) that helps you embed typebots in your WordPress site.

Of course, before using it, you need to create and publish your first zazubot.

<Frame>
  <img src="https://mintcdn.com/zazubot/_eRGnFfHYvpabed3/images/embeddings/wordpress-preview.png?fit=max&auto=format&n=_eRGnFfHYvpabed3&q=85&s=c592486c21769377db78e6e05f89bd3c" alt="WP plugin preview" width="1840" height="990" data-path="images/embeddings/wordpress-preview.png" />
</Frame>

The code snippet to paste is easily configurable in the Share tab of your bot after clicking on the "Wordpress" button.

## Excluded pages

The excluded pages input is a comma-separated list of pages where you don't want your zazubot to appear.

Examples:

* `/app/*` will exclude all pages starting with `/app/`
* `/app` will only exclude the `/app` page
* `/app?param=1` will only exclude the `/app` page **and** with the `param` query parameter set to `1`
* `/app?param=*` will exclude the page at `/app` **and** with the `param` query parameter set to anything
* `/app/*?param=*` will exclude all pages starting with `/app/` **and** with the `param` query parameter set to anything

## Personalize user experience

You can leverage the [prefilled variables](../../editor/variables#prefilled-variables) and inject your user information directly into your zazubot so that the experience is entirely customized to your user.

Here are the available variables from WordPress, make sure to create them in your zazubot's variables dropdown:

<Frame style={{ maxWidth: "400px" }}>
  <img src="https://mintcdn.com/zazubot/_eRGnFfHYvpabed3/images/embeddings/wp-variables.png?fit=max&auto=format&n=_eRGnFfHYvpabed3&q=85&s=dce1fd525e923f2644b3af2bf56b361a" alt="WP predefined variables" width="1312" height="1286" data-path="images/embeddings/wp-variables.png" />
</Frame>

The only thing you need to do to enable this is:

* Use the [Wordpress zazubot plugin](https://wordpress.com/plugins/typebot)
* Have the variables declared in your zazubot with the exact syntaxes. For the email for example, make sure your variable is spelled `WP Email`. These won't work: `wp Email`, `WP email`.

## Your zazubot isn't showing?

### You have litespeed with "Localise Resources" enabled

There is an a box where there is a list of URLs it localises, one of them was ‘[https://cdn.jsdelivr.net’](https://cdn.jsdelivr.net’). This URL should be removed from it since it is used to import the embed library.

## You have litespeed with cache enabled

Make sure to insert `web.js` and `typebot` in the JS Excludes textbox and JS Deferred Excludes under Tuning Settings.

### You have a cache plugin

Plugins like WP Rocket prevent zazubot to work.

For WP Rocket:

1. Go to Settings > WP Rocket > Excluded Inline Javascript:

<Frame>
  <img src="https://mintcdn.com/zazubot/_eRGnFfHYvpabed3/images/embeddings/wp-rocket.png?fit=max&auto=format&n=_eRGnFfHYvpabed3&q=85&s=ff6479b10a7ad8a90702634aac179194" alt="WP Rocket" width="3360" height="1888" data-path="images/embeddings/wp-rocket.png" />
</Frame>

2. Type "typebot"
3. Save

### You have plugin that adds `defer` attribute to external scripts

You need to add an exception for zazubot in the corresponding plugin config.

### Still not working

Contact me on the application using the zazubot at the bottom right corner
