# Creating embeds

## Let's get started.

### Example of embed layout:

<pre class="language-javascript"><code class="lang-javascript"><strong>const embed = {
</strong>  "title": "Introducing TouchGuild",
  "description": "A powerful Node.js __library__ for **interfacing** with Guilded \n Let's get started.",
  "url": "https://github.com/DinographicPixels/TouchGuild",
  "color": 6118369,
  "timestamp": "2022-04-12T22:14:36.737Z",
  "footer": {
    "icon_url": "https://img.guildedcdn.com/ContentMediaGenericFiles/312797c11c3f01d6b14f5719529a76ab-Full.webp?w=1080&#x26;h=1080",
    "text": "Made with love."
  },
  "thumbnail": {
    "url": "https://img.guildedcdn.com/ContentMediaGenericFiles/312797c11c3f01d6b14f5719529a76ab-Full.webp?w=1080&#x26;h=1080"
  },
  "image": {
    "url": "https://camo.githubusercontent.com/739ac07c7fb99a25939e49d97e67d6a0f0968437ea15fc175f818dd737917f85/68747470733a2f2f63646e2e676c697463682e676c6f62616c2f62633638333133652d366162622d343838632d613165332d6536643130383137633262642f746f7563686775696c642d637261646975732e706e673f763d31363635333131323732323437"
  },
  "author": {
    "name": "DinographicPixels",
    "url": "https://www.guilded.gg/DinographicPixels",
    "icon_url": "https://www.guilded.gg/asset/Default/Gil-md.png"
  },
  "fields": [
    {
      "name": "**Powerful**",
      "value": "yeah!"
    },
    {
      "name": "Make an incredible app",
      "value": "use TouchGuild, now!",
      "inline": true
    }
  ]
}
</code></pre>

{% hint style="success" %}
You're ready to create embeds!
{% endhint %}

### Now, let's send it.

```javascript
client.rest.channels.createMessage("channelID", { embeds: [embed] })
```


---

# 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://guide.touchguild.com/managing-messages/creating-embeds.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.
