Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 46 additions & 0 deletions .github/workflows/llms-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: llms.txt check

# llms.txt and llms-pages.mdx are generated from docs.json and page frontmatter by
# scripts/llms/generate-llms.mjs. This fails on a structural error: a missing page, a nav page that
# docs.json redirects, an undecided hidden section, or an llms-full.txt committed at the root (it
# would replace Mintlify's full-text corpus). Out-of-date files only warn: after merge,
# llms-regenerate.yml regenerates them on main and opens a PR, so a PR (a fork's too) never has to.
# To fix a warning yourself: node scripts/llms/generate-llms.mjs, then commit llms.txt and llms-pages.mdx.

on:
pull_request:
paths:
- 'docs.json'
- '**/*.mdx'
- '**/*.md'
- '*.json'
- 'llms.txt'
- 'llms-pages.mdx'
- 'llms-full.txt'
- 'llms-full.md'
- 'scripts/llms/**'
- '.github/workflows/llms-check.yml'

permissions:
contents: read

jobs:
llms:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- name: Generator tests
run: node --test scripts/llms/generate-llms.test.mjs
- name: No structural errors (out-of-date files only warn)
run: |
set +e
node scripts/llms/generate-llms.mjs --check
code=$?
if [ "$code" = 2 ]; then
echo "::warning::llms.txt / llms-pages.mdx are out of date. They are regenerated on main after merge (llms-regenerate.yml), or run node scripts/llms/generate-llms.mjs and commit them."
exit 0
fi
exit "$code"
73 changes: 73 additions & 0 deletions .github/workflows/llms-full-corpus.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
name: llms-full.txt corpus

# https://www.cometchat.com/docs/llms-full.txt is Mintlify's generated full text of every page.
# We publish our own llms.txt and llms-pages.mdx but must never replace that corpus. This checks the
# served file: on a PR, the Mintlify preview once it serves this PR's llms.txt; on a schedule, production.
# It fails if the file is small or lacks known text from real pages (scripts/llms/llms.config.json → fullCorpus).

on:
pull_request:
paths:
- 'llms.txt'
- 'llms-pages.mdx'
- 'llms-full.txt'
- 'llms-full.md'
- 'scripts/llms/**'
- '.github/workflows/llms-full-corpus.yml'
schedule:
- cron: '30 3 * * *'
workflow_dispatch:

permissions:
contents: read
deployments: read

jobs:
corpus:
# Mintlify builds previews only for branches of this repository, so a PR from a fork has none to check.
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository
runs-on: ubuntu-latest
timeout-minutes: 25
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- name: Find this commit's Mintlify preview
id: preview
if: github.event_name == 'pull_request'
env:
GH_TOKEN: ${{ github.token }}
REPO: ${{ github.repository }}
SHA: ${{ github.event.pull_request.head.sha }}
run: |
# Mintlify records each preview as a GitHub deployment of the commit, with the preview URL.
# No deployment, or one that failed, means there is no preview to check: skip, don't fail.
# (A failed build is reported by the Mintlify Deployment check; the nightly run checks production.)
for i in $(seq 1 45); do
id=$(gh api "repos/$REPO/deployments?sha=$SHA" --jq '[.[] | select(.creator.login == "mintlify[bot]")][0].id // empty')
if [ -n "$id" ]; then
state=$(gh api "repos/$REPO/deployments/$id/statuses" --jq '.[0].state // ""')
case "$state" in
success)
url=$(gh api "repos/$REPO/deployments/$id/statuses" --jq '.[0].environment_url // ""')
if [ -n "$url" ]; then echo "url=$url" >> "$GITHUB_OUTPUT"; exit 0; fi ;;
failure|error|inactive)
echo "::warning::Mintlify's preview of $SHA ended '$state': skipping the corpus check"; exit 0 ;;
esac
fi
sleep 20
done
echo "::warning::No Mintlify preview of $SHA after 15 minutes: skipping the corpus check"
- name: Served llms-full.txt is Mintlify's full corpus
if: github.event_name != 'pull_request' || steps.preview.outputs.url != ''
env:
EVENT: ${{ github.event_name }}
PREVIEW: ${{ steps.preview.outputs.url }}
run: |
if [ "$EVENT" = "pull_request" ]; then
# The preview is deployed; wait briefly for it to serve this commit's llms.txt, then check.
node scripts/llms/check-full-corpus.mjs --base "$PREVIEW" --wait-for llms.txt --timeout 300
else
node scripts/llms/check-full-corpus.mjs
fi
59 changes: 59 additions & 0 deletions .github/workflows/llms-regenerate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name: llms.txt regenerate

# Keeps llms.txt and llms-pages.mdx in step with main. PRs only warn when they are out of date
# (llms-check.yml), so after a merge this regenerates them and opens or updates ONE pull request
# from docs/llms-regenerate for a person to review and merge. It never commits to main.
# A structural error on main (a broken link, a redirected nav page, ...) fails this job instead.
#
# Needs "Allow GitHub Actions to create and approve pull requests" on in the repo's Actions settings.
# The PR is opened with GITHUB_TOKEN, so other workflows don't run on it; it only changes the two
# generated files, and the next run on main checks them again.

on:
push:
branches: [main]
paths:
- 'docs.json'
- '**/*.mdx'
- '**/*.md'
- 'llms.txt'
- 'llms-pages.mdx'
- 'scripts/llms/**'
- '.github/workflows/llms-regenerate.yml'
workflow_dispatch:

permissions:
contents: write
pull-requests: write

concurrency:
group: llms-regenerate
cancel-in-progress: true

jobs:
regenerate:
if: github.repository == 'cometchat/docs'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- name: Generator tests
run: node --test scripts/llms/generate-llms.test.mjs
- name: Regenerate llms.txt and llms-pages.mdx
run: node scripts/llms/generate-llms.mjs
- name: Open or update the regenerate PR
uses: peter-evans/create-pull-request@v8
with:
branch: docs/llms-regenerate
delete-branch: true
sign-commits: true
add-paths: |
llms.txt
llms-pages.mdx
commit-message: 'docs: regenerate llms.txt and llms-pages.mdx'
title: 'docs: regenerate llms.txt and llms-pages.mdx'
body: |
Generated by `.github/workflows/llms-regenerate.yml` from main at ${{ github.sha }}: `node scripts/llms/generate-llms.mjs`.
Only `llms.txt` and `llms-pages.mdx` change. Merge it to bring them back in step with main. A later run on main updates this PR in place.
3 changes: 2 additions & 1 deletion .mintignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@
/docs-templates
/mintignore
/doc-auditor
/docs-test-suite
/docs-test-suite
/scripts
15 changes: 15 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,21 @@ Please [submit an issue](https://github.com/cometchat/docs/issues/new) with the
5. **Push your changes** to your fork.
6. **Submit a pull request** to the main repository.

#### The `llms` check

`llms.txt` and `llms-pages.mdx` (the page index for AI agents) are generated from `docs.json` and each page's frontmatter. Adding, moving or renaming a page, or changing a title or description, changes them.

- **Out of date: a warning, nothing to do.** After your PR merges, the `llms.txt regenerate` workflow regenerates both files on `main` and opens (or updates) one pull request from `docs/llms-regenerate`. If you'd rather include them in your PR, run the generator (Node 18 or later, no install needed) and commit both files:

```bash
node scripts/llms/generate-llms.mjs
git add llms.txt llms-pages.mdx
```

- **An error: fix it before merge.** The check fails on a structural problem: the index linking a page that has no file or is redirected, a navigation page that a `docs.json` redirect hides (remove the redirect or the nav entry, or list the page in `redirectedNavAllowed` in `scripts/llms/llms.config.json`), or a section that was hidden, renamed or removed in `docs.json` (update `hiddenSections` as the message says).

`node scripts/llms/generate-llms.mjs --check` runs the same check locally: exit 1 is an error, exit 2 means the files are only out of date. Don't edit `llms.txt` or `llms-pages.mdx` by hand, and don't add an `llms-full.txt`: Mintlify generates that one.

### Pull Request Process

1. Ensure your PR has a clear title and description explaining the changes you've made.
Expand Down
2 changes: 1 addition & 1 deletion ai-chatbots/custom-bots.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: "Custom Bots"
description: "Custom Bots — CometChat documentation."
description: "Create a custom bot that receives CometChat messages at an HTTPS callback endpoint and replies autonomously in one-on-one or group chats."
---

In CometChat, Custom bots are unique users capable of autonomously sending and receiving messages.
Expand Down
20 changes: 0 additions & 20 deletions docs.json
Original file line number Diff line number Diff line change
Expand Up @@ -7095,14 +7095,6 @@
}
},
"redirects": [
{
"source": "/sdk/flutter/group-kick-member",
"destination": "/sdk/flutter/group-kick-ban-members"
},
{
"source": "/sdk/flutter/login-listeners",
"destination": "/sdk/flutter/authentication-overview#login-listener"
},
{
"source": "/react-native/getting-started",
"destination": "/ui-kit/react-native/react-native-cli-integration"
Expand All @@ -7123,10 +7115,6 @@
"source": "/ui-kit/ios/property-changes",
"destination": "/ui-kit/ios/upgrading-from-v4"
},
{
"source": "/ui-kit/react-native/property-changes",
"destination": "/ui-kit/react-native/upgrading-from-v4"
},
{
"source": "/ai/overview",
"destination": "/fundamentals/ai-user-copilot/overview"
Expand Down Expand Up @@ -7631,10 +7619,6 @@
"source": "/rest-api/messages/list-reactions-with-a-specific-emojiunicodes",
"destination": "/rest-api/messages/list-reactions-with-a-specific-emoji-unicode"
},
{
"source": "/rest-api/messages/mark-message-as-interacted",
"destination": "/rest-api/messages"
},
{
"source": "/calls/api/overview",
"destination": "/rest-api/calls-apis/overview"
Expand Down Expand Up @@ -10487,10 +10471,6 @@
"source": "/sdk/flutter/call-logs",
"destination": "/calls/flutter/call-logs"
},
{
"source": "/sdk/flutter/resources-overview",
"destination": "/calls/flutter/overview"
},
{
"source": "/sdk/flutter/v5/calling-overview",
"destination": "/calls/flutter/overview"
Expand Down
2 changes: 1 addition & 1 deletion fundamentals/emojis.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: "Emojis (Deprecated)"
description: "Emojis (Deprecated) — CometChat documentation."
description: "Deprecated: the Emojis extension is outdated because all major browsers now support emojis natively, so you no longer need it."
---

<Warning>
Expand Down
2 changes: 1 addition & 1 deletion fundamentals/gfycat.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: "Gfycat (Deprecated)"

Check warning on line 2 in fundamentals/gfycat.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

Vale.Spelling

Did you really mean 'Gfycat'?
description: "Gfycat (Deprecated) — CometChat documentation."
description: "Deprecated: the Gfycat extension is no longer maintained or available because Gfycat ceased operations; use the Giphy extension instead."

Check warning on line 3 in fundamentals/gfycat.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

Vale.Spelling

Did you really mean 'Gfycat'?

Check warning on line 3 in fundamentals/gfycat.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

Vale.Spelling

Did you really mean 'Gfycat'?

Check warning on line 3 in fundamentals/gfycat.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

Vale.Spelling

Did you really mean 'Giphy'?
---

<Warning>
Expand All @@ -9,6 +9,6 @@

</Warning>

Gfycat ceased their operations recently. This extension is no longer available.

Check warning on line 12 in fundamentals/gfycat.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

Vale.Spelling

Did you really mean 'Gfycat'?

Please check out our [Giphy](/fundamentals/giphy) extension that is similar to Gfycat.

Check warning on line 14 in fundamentals/gfycat.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

Vale.Spelling

Did you really mean 'Gfycat'?
2 changes: 1 addition & 1 deletion fundamentals/overview.mdx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: "What Is CometChat?"
sidebarTitle: "Overview"
description: "Overview of What Is CometChat? in CometChat."
description: "What CometChat is: a platform for real-time chat and voice and video calling, the ways to integrate it, and the solutions it supports for each industry."
---

CometChat is a comprehensive communications platform that empowers businesses to seamlessly integrate real-time chat, voice and video calling functionalities. These integrations can be done picking up the implementation methods that align best with your goals.
Expand All @@ -23,7 +23,7 @@
* Online education
* Community & Social
* Sports & Gaming
* Team Comms & Workflows

Check warning on line 26 in fundamentals/overview.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

Vale.Spelling

Did you really mean 'Comms'?
* SaaS Businesses

## Integrate in minutes
Expand All @@ -50,7 +50,7 @@

Fully customizable and easy to use? Yes, it's possible, with our SDKs and APIs for in-app messaging and voice & video calling.

## Compliances

Check warning on line 53 in fundamentals/overview.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

Vale.Spelling

Did you really mean 'Compliances'?

Choosing CometChat is your assurance of a meticulously vetted and highly secure solution. We deeply appreciate and obsess over the significance of both security and compliance.

Expand All @@ -77,7 +77,7 @@
| Read receipts | Pin message | User profile avatars |
| Delivery receipts | Save message | Reminders |
| Audio messages | Rich media preview | Reactions |
| Unread message count | URL shorteners | Push notifications |

Check warning on line 80 in fundamentals/overview.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

Vale.Spelling

Did you really mean 'shorteners'?
| Users search | Thumbnail generation | Email notifications & replies |
| Messages search | Message shortcuts | SMS notifications |
| | Voice transcription | Email replies |
Expand All @@ -91,7 +91,7 @@
| Data masking | Cross-platform sync | After message webhook |
| XSS Filter | User & group management | Intercom |
| User-to-user blocking | Encryption | SendGrid |
| Moderation dashboard | Multi-device support | Chatwoot |

Check warning on line 94 in fundamentals/overview.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

Vale.Spelling

Did you really mean 'Chatwoot'?
| Human moderators | Historical data import API | Virgil security |
| Report user | Live data migration | App management API |
| Kick/ban users | Data export | App creation API |
Expand All @@ -116,7 +116,7 @@
| Conference calls | Interactive document | Call logs |
| Personal meeting rooms | Picture-in-picture | Customizable call screens |
| Mobile calling | Screen sharing | SRTP encryption |
| Push notifications | In-call messaging | Pushkit & callkit support |

Check warning on line 119 in fundamentals/overview.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

Vale.Spelling

Did you really mean 'Pushkit'?

Check warning on line 119 in fundamentals/overview.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

Vale.Spelling

Did you really mean 'callkit'?
| Grid tile & spotlight layouts | | App management API |

### CometChat AI
Expand Down
61 changes: 32 additions & 29 deletions llms-index.mdx
Original file line number Diff line number Diff line change
@@ -1,55 +1,58 @@
---
title: "CometChat — LLM docs indexes"
description: "Directory of every product-scoped LLM docs index — smaller, current-version alternatives to the site-wide /docs/llms.txt, each a plain list of docs links with clean .md twins for AI coding agents."
description: "Directory of every product-scoped LLM docs index: small, current-version lists of one product's docs pages, each linked as its clean .md version for AI coding agents."
---

{/*
UNLISTED, NOT hidden — this directory is for LLMs/agents, not the human sidebar. It is intentionally
omitted from docs.json navigation (so it never appears in the sidebar) but IS built, served at
/docs/llms-index, and INDEXED for search + AI. We avoid hidden:true/noindex (Mintlify's hidden
auto-applies noindex, which would drop it from search and the auto llms.txt / AI context).
auto-applies noindex, which would drop it from search and AI context).
Links are absolute .md URLs so agents get Markdown in one fetch. `node scripts/llms/generate-llms.mjs --check`
fails if an llms-*.mdx index is missing here or a link here is dead.
*/}

# CometChat — LLM docs indexes

> Directory of the product-scoped LLM docs indexes for AI coding agents. Each entry below links a
> single product's current-version docs; on any of those pages, **append `.md`** to a URL for the
> clean Markdown twin. For everything at once instead of one product, use the site-wide
> [/docs/llms.txt](https://www.cometchat.com/docs/llms.txt) (index) or [/docs/llms-full.txt](https://www.cometchat.com/docs/llms-full.txt) (full corpus).
> Each entry below lists one product's current-version docs pages. Every link is the page's clean
> Markdown version (any docs URL + `.md`). Start from [/docs/llms.txt](https://www.cometchat.com/docs/llms.txt),
> which links these indexes plus the agent tools (skills, MCP, CLI) and every product without an index.

## UI Kits
- [React UI Kit v7](/ui-kit/react/llms-react-v7)
- [Angular UI Kit v5](/ui-kit/angular/llms-angular-v5)
- [Vue UI Kit v4](/ui-kit/vue/llms-vue-v4)
- [React Native UI Kit v5](/ui-kit/react-native/llms-react-native-v5)
- [iOS UI Kit v5](/ui-kit/ios/llms-ios-v5)
- [Android UI Kit v6](/ui-kit/android/llms-android-v6)
- [Flutter UI Kit v6](/ui-kit/flutter/llms-flutter-v6)
- [React UI Kit v7](https://www.cometchat.com/docs/ui-kit/react/llms-react-v7.md)
- [Angular UI Kit v5](https://www.cometchat.com/docs/ui-kit/angular/llms-angular-v5.md)
- [Vue UI Kit v4](https://www.cometchat.com/docs/ui-kit/vue/llms-vue-v4.md)
- [React Native UI Kit v5](https://www.cometchat.com/docs/ui-kit/react-native/llms-react-native-v5.md)
- [iOS UI Kit v5](https://www.cometchat.com/docs/ui-kit/ios/llms-ios-v5.md)
- [iOS UI Kit v6 (beta)](https://www.cometchat.com/docs/ui-kit/ios/v6/llms-ios-v6.md)
- [Android UI Kit v6](https://www.cometchat.com/docs/ui-kit/android/llms-android-v6.md)
- [Flutter UI Kit v6](https://www.cometchat.com/docs/ui-kit/flutter/llms-flutter-v6.md)

## Chat SDKs
- [JavaScript Chat SDK v4](/sdk/javascript/llms-javascript-v4)
- [React Native Chat SDK v4](/sdk/react-native/llms-react-native-v4)
- [iOS Chat SDK v4](/sdk/ios/llms-ios-v4)
- [Android Chat SDK v5](/sdk/android/v5/llms-android-v5)
- [Flutter Chat SDK v5](/sdk/flutter/llms-flutter-v5)
- [JavaScript Chat SDK v4](https://www.cometchat.com/docs/sdk/javascript/llms-javascript-v4.md)
- [React Native Chat SDK v4](https://www.cometchat.com/docs/sdk/react-native/llms-react-native-v4.md)
- [iOS Chat SDK v4](https://www.cometchat.com/docs/sdk/ios/llms-ios-v4.md)
- [Android Chat SDK v5](https://www.cometchat.com/docs/sdk/android/llms-android-v5.md)
- [Flutter Chat SDK v5](https://www.cometchat.com/docs/sdk/flutter/llms-flutter-v5.md)

## Voice & Video Calling
- [Calls — current version, all platforms + SDK + platform + APIs](/calls/llms-calls)
- [Calls — current version, all platforms + SDK + platform + APIs](https://www.cometchat.com/docs/calls/llms-calls.md)

## AI & moderation
- [AI Agents](/ai-agents/llms-ai-agents)
- [AI Moderation](/moderation/llms-moderation)
- [AI Agents](https://www.cometchat.com/docs/ai-agents/llms-ai-agents.md)
- [AI Moderation](https://www.cometchat.com/docs/moderation/llms-moderation.md)

## Engagement
- [Notifications](/notifications/llms-notifications)
- [Campaigns](/campaigns/llms-campaigns)
- [Insights](/insights)
- [Notifications](https://www.cometchat.com/docs/notifications/llms-notifications.md)
- [Campaigns](https://www.cometchat.com/docs/campaigns/llms-campaigns.md)
- [Insights](https://www.cometchat.com/docs/insights.md)

## Chat — other surfaces
- [Chat Widget](/widget/llms-widget)
- [Chat Fundamentals & Extensions](/fundamentals/llms-chat-fundamentals)
- [Chat REST & Management APIs](/rest-api/llms-chat-rest)
- [Chat Widget](https://www.cometchat.com/docs/widget/llms-widget.md)
- [Chat Fundamentals & Extensions](https://www.cometchat.com/docs/fundamentals/llms-chat-fundamentals.md)
- [Chat REST & Management APIs](https://www.cometchat.com/docs/rest-api/llms-chat-rest.md)

## Also useful for agents
- [Agent Skills](/agent-skills) — install CometChat skills into your AI coding agent.
- [Docs MCP](/mcp-server) — connect the CometChat Docs MCP.
- [Agent Skills](https://www.cometchat.com/docs/agent-skills.md) — install CometChat skills into your AI coding agent.
- [Docs MCP](https://www.cometchat.com/docs/mcp-server.md) — connect the CometChat Docs MCP.
- [CometChat CLI](https://www.cometchat.com/docs/cli.md) — provision apps and manage the skills from your terminal.
Loading
Loading