# Authoring kit (/docs/reference/authoring-kit)

> A reference page for documentation writers showing each MDX component (Before you start, Steps, Tabs, Accordion, Callout, Screenshot, Faq, Glossary, Video, Mermaid) and how it appears in the Markdown version.

Type: reference | Status: planned | Last reviewed: 2026-11-21 | Minimum role: builder | Minimum plan: Starter | Availability: Example only

This page exists to test the components. It is hidden from search engines until the Reference section is written.

## Before you start [#before-you-start]

The box at the top of this page comes from the `role`, `plan` and `flag` frontmatter fields.

## Search fields [#search-fields]

Three optional frontmatter fields let a page rank for the words people search without making the sidebar long.

| Field | Rule | What it changes |
| --- | --- | --- |
| `seoTitle` | 30 to 45 characters. Leave out "Loopwix Docs", which is added for you | The browser tab title, the title in search results and social cards. The page heading still shows `title` |
| `sidebarTitle` | Up to 40 characters | The label in the sidebar, the previous and next links and the Related cards |
| `useFor` | A key from `lib/marketing-links.json`, such as `booking` or `ecommerce` | The marketing page the doc points readers to |

Example:

```yaml
title: "Connect WhatsApp to your AI agent"
seoTitle: "Connect an AI chatbot to WhatsApp Business"
sidebarTitle: "WhatsApp"
```

Keep the main phrase of `seoTitle` in `title` too. The build stops if a field breaks its rule.

## Steps [#steps]

<Steps>
<Step>

### Open the dashboard [#open-the-dashboard]

Go to **Agents** and select **Create agent**.

</Step>
<Step>

### Name your agent [#name-your-agent]

Type a name and select **Save**.

</Step>
</Steps>

## Tabs [#tabs]

<Tabs items={['Website', 'WhatsApp']}>
  <Tab value="Website">Paste the snippet before the closing body tag.</Tab>
  <Tab value="WhatsApp">Connect your Meta app token.</Tab>
</Tabs>

## Accordion [#accordion]

<Accordions>
  <Accordion title="Why does the agent not answer?">Check that the document status is **Published**.</Accordion>
</Accordions>

## Callouts [#callouts]

<Callout type="warn">Deleting a base removes every table in it.</Callout>

## Screenshot [#screenshot]

<Screenshot src="/brand/logo-icon.svg" alt="The Loopwix logo mark, shown as a sample image" caption="Sample screenshot" captured="2026-11-01" width={64} height={64} />

## Diagram [#diagram]

<Mermaid title="Draft, publish, version" chart={`flowchart LR
  A[Draft] --> B[Test chat]
  B --> C[Publish]
  C --> D[Version]
  D -->|roll back| A`} />

## Questions and answers [#questions-and-answers]

Use `<Faq>` for questions readers ask. Each `<FaqItem>` becomes a heading in the page outline, and the page gets FAQ structured data built from the same text. Use one `<Faq>` per page. Put the tags and the answer on separate lines.

### What does the Beta label on a page mean?

Beta means the feature works but may still change. Check the page before you rely on it for a critical flow.

### Can I read a page as Markdown?

Yes. Add `.md` to the end of any docs address to get the Markdown version of that page.

## Glossary [#glossary]

Use `<Glossary>` with one `<Term>` per word. Each term gets its own heading and anchor, such as `#status-label`. Start each definition with the term: "Status label is…".

### Status label [#status-label]

Status label is the tag on a docs page that says whether a feature is available, in beta or coming soon.

### Markdown version [#markdown-version]

Markdown version is a plain-text copy of a docs page, made for AI tools, at the same address with `.md` added.

## Video [#video]

Use `<Video src="/media/agents/create.mp4" captions="/media/agents/create.vtt" title="Create an agent" duration="0:60" transcript="..." />`. The transcript is always shown on the page.
