# Creating a Message Template

## Prerequisites

You have created a **Search** object.&#x20;

**Message Templates** allow you to configure the layout of your search results as they are displayed on Slack.&#x20;

Here's how you can create/modify your message template for your search object:

1. From the **DataFetch** web interface, select a search object.&#x20;
2. Go to the Message Template tab. This tab features the following sections:

   \
   The **Fields** section shows all searchable attributes in a specific HubSpot object. \
   The **Template** section allows you to create a message template using JSX. \
   The **Preview** pane shows what the search result will look like in Slack.
3. You can click and drag the fields into the **Templates** section and format the layout as you desire.\
   \
   As you create your template, you will see how your Slack search result will look in the **Preview** pane.
4. Click **Save**.&#x20;


---

# 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.datafetch.io/data-source-types/hubspot/creating-a-message-template.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.
