# Developer Platform

<h2 align="center">Herd Developments Docs</h2>

<p align="center">Welcome to Herd Creations</p>

<p align="center"></p>

{% columns %}
{% column %}

### Facing an Error? We've Got You Covered!

If you run into any issues while using our scripts, don’t worry — you’re not alone. Start by checking out our comprehensive documentation, where we’ve outlined solutions to the most common problems. Step-by-step guides, troubleshooting tips, and detailed explanations make it easy to fix issues on your own.

Still can’t find a solution? No problem! Our support team is ready to help. Simply create a support ticket on our Discord, and we’ll guide you through resolving your issue as quickly as possible. We’re committed to making sure your experience is smooth and hassle-free.

<a href="/spaces/zqZqWsgOSMnEUQw7ciKQ" class="button primary" data-icon="rocket-launch">Get started</a> <a href="/spaces/Y9Z6PLrv8YkDLMlRTMCZ" class="button secondary" data-icon="terminal">API reference</a>
{% endcolumn %}

{% column %}
{% code title="index.js" overflow="wrap" %}

```javascript
import Herd from "herd-development";

const client = new Herd({ apiKey: "YOUR_API_KEY" });

async function sendMessage(msg) {
  try {
    const res = await client.messages.send({ message: msg });
    console.log("Sent:", res);
  } catch (err) {
    console.error("Error:", err);
  }
}

sendMessage("Hello, world!");
```

{% endcode %}
{% endcolumn %}
{% endcolumns %}

<h2 align="center">Join our community</h2>

<p align="center">Join our Discord community to be updated on our resources</p>

<table data-card-size="large" data-view="cards"><thead><tr><th></th><th></th><th></th><th></th><th data-hidden data-card-cover data-type="image">Cover image</th></tr></thead><tbody><tr><td><h4><i class="fa-discord">:discord:</i></h4></td><td><strong>Discord community</strong></td><td>Join our Discord community to post questions, get help, and share resources with over 3,000 like-minded developers.</td><td><a href="https://www.gitbook.com/" class="button secondary">Join Discord</a></td><td><a href="/files/k6WJsCDJu92q6zcdUv1s">/files/k6WJsCDJu92q6zcdUv1s</a></td></tr><tr><td><h4><i class="fa-github">:github:</i></h4></td><td><strong>GitHub</strong></td><td>Explore our open-source project on GitHub to access the latest updates and stay connected with our community.</td><td><a href="https://www.gitbook.com/" class="button secondary">Check Out Github</a></td><td><a href="/files/uGu8rLqmqD8xJJK4BpUo">/files/uGu8rLqmqD8xJJK4BpUo</a></td></tr></tbody></table>


---

# 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.herdcreations.store/readme.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.
