> For the complete documentation index, see [llms.txt](https://docs.bird.com/applications/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.bird.com/applications/content/content-blocks/how-to/how-to-use-content-block.md).

# How to use Content Block

To use content blocks in email editor, you can follow these steps:

* Add a text element and click on Add variable button and go to Content Blocks

<figure><img src="/files/x2Q3IMwNVPojvMG4gMHL" alt="" width="375"><figcaption></figcaption></figure>

* After clicking on the option, select the content block you want to add from the dropdown
* Click on Insert and the liquid code to add the content block will be automatically added

<figure><img src="/files/Ih3XWXADdZ9MyuwDjRmB" alt=""><figcaption></figcaption></figure>

Alternatively, you can directly type the liquid code reference as follows:

```
```

* You can go to preview section and view the complete email with content block rendered

These content blocks are html blocks only which are defined outside of the editor and can be added like a variable in the email editor from variable dropdown in a text. They can also be referenced anywhere in html using {% contentBlock 'content-block-name' %} They are editable in html. and available for segmentation.These are different from blocks in drag and drop editor in following way:

* Blocks in drag and drop email editor are saved blocks from what is created in drag and drop editor already for reuse in drag and drop email editor
* Content blocks are a separate section under content which is entirely html and can be used for email (html and drag/drop) and push


---

# 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://docs.bird.com/applications/content/content-blocks/how-to/how-to-use-content-block.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.
