# Creating a Custom Widget

> A [widget](https://docs.magento.com/m2/ce/user_guide/cms/widgets.html) is a prepared snippet of code that can be used to place blocks, links, and dynamic content at specific locations on store pages. You can use widgets to create landing pages for marketing campaigns, display promotional content at specific locations throughout the store. Widgets can also be used to add interactive elements and action blocks for external review systems, video chats, voting, and subscription forms, or to provide navigation elements for tag clouds and image sliders.
>
> *–* [*Magento Glossary*](https://glossary.magento.com/widget/)

Since most of the Scandi presentation logic happens on the frontend, the CMS system is a little different in Scandi than default Magento. For this reason, you need to take a slightly different approach when developing a widget for Scandi.

In this example, we will create a newsletter widget. The CMS author will be able to add the widget anywhere and specify its title. Then, the customer will see the title and newsletter block on the frontend.


---

# 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://docs.scandipwa.com/tutorials/creating-a-custom-widget.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.
