# Publishing on page builder apps or headless setups

After a quiz is published to any theme, you can connect it to a page builder app or headless setup.

**Steps:**

1. From the quiz builder menu, click **Publish**.
2. From the **Publish** menu, click **Embed with code snippet**.
3. Copy the code in step 1 by clicking **Copy**.
4. Navigate to your page builder settings or your headless setup files and paste the code you just copied in the appropriate location.
5. Copy the following script and then paste it above the code you copy and pasted in steps 3 & 4.

```
<link type="text/css" rel="stylesheet" href="https://d38jc50suw8dg3.cloudfront.net/current/static/main.min.css" media="all">
<script async="" src="https://d38jc50suw8dg3.cloudfront.net/current/static/bundle.min.js"></script>
```

4. Save your changes.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://support.quizkitapp.com/publish-and-launch/publishing-your-quiz/publishing-on-page-builder-apps-or-headless-setups.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
