> For the complete documentation index, see [llms.txt](https://contentbox.ortusbooks.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://contentbox.ortusbooks.com/v4.x/usage/using-contentbox/look-and-feel/widgets/inserting-a-simple-widget.md).

# Inserting a Simple Widget

Lets add a widget into a page. In this example, we're going to insert a simple ContentBoxBadge Widget which has no parameters or arguments. We show you how to create this Widget in the `Developing for ContentBox` section of the documentation.

Lets browse in the admin to `Content > Sitemap` and click on a page. Find the location in the text you would like to add your widget, and click the Green ContentBox Widget icon ( circled below ).

![](/files/-LA-UosNRqOspKgEInZw)

Pick a Widget out of the list, you can filter the widgets, or select by category ( categories are defined in the Widget properties ).

![](/files/-LA-UosSoCV4QZlE13t-)

Click anywhere on the Widget itself, and the Insert Widget Dialog will open like the screen below.

![](/files/-LA-UosWOWDGVgJ5NR4M)

If there were arguments, you could adjust them here. If this is the widget you want, and the preview looks good, click `Insert Widget`. `Back to Widgets` allows you to return to the Widget list to look for a different widget. `Cancel` returns you to the Content Editors.

Once inserted, click Publish, and then you'll see a Widget placeholder like this.

![](/files/-LA-UosnqfqwVYXAxEM_)

If you right click on the widget, you can get a Widget Context menu like below. You can edit, or remove a Widget through that context menu, or just double click the Widget placeholder to edit directly.

![](/files/-LA-UossTZpLt4k6lQPt)

This example has no arguments or parameters to change, but if you did, you would be able to edit those here, and click `Update Widget` to save those changes.

![](/files/-LA-Uot1q0PUKHrq3Vyt)

You can preview the page using our Responsive Previewer which allows you to see what your page will look like, in desktop, tablet and phone views ( horizontal and vertical ).

![](/files/-LA-UotXxg5x7KiTNdKj)

![](/files/-LA-Uot_n9NWfZzMv4bX)

When you are happy, ensure you save / publish your page to keep your changes. Once saved, you can view it on the front end of the website.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://contentbox.ortusbooks.com/v4.x/usage/using-contentbox/look-and-feel/widgets/inserting-a-simple-widget.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
