Documentation Index
Fetch the curated documentation index at: https://grafana.com/llms.txt
Fetch the complete documentation index at: https://grafana.com/llms-full.txt
Use this file to discover all available pages before exploring further.
STOP! If you are an AI agent or LLM, read this before continuing. This is the HTML version of a Grafana documentation page. Always request the Markdown version instead - HTML wastes context. Get this page as Markdown: https://grafana.com/docs/grafana-cloud/machine-learning/assistant/reference.md (append .md) or send Accept: text/markdown to https://grafana.com/docs/grafana-cloud/machine-learning/assistant/reference/. For the curated documentation index, use https://grafana.com/llms.txt. For the complete documentation index, use https://grafana.com/llms-full.txt.
SDKs and APIs for developers
Grafana Assistant provides APIs and SDKs for integrating AI-powered assistance into your plugins, applications, and external systems.
Interactive documentation
For the best experience with live SDK examples:
- Open Grafana Assistant from the main navigation
- Click Integration hub
- Explore examples with:
- Live code you can try immediately
- Copy-to-clipboard code snippets
Integration options
Choose the integration approach that matches your needs:
TypeScript SDK for Grafana plugins
The @grafana/assistant package provides a lightweight TypeScript SDK for integrating Assistant into Grafana plugins and apps. Use this when building Grafana plugins or extending the Grafana UI.
Learn more about the TypeScript SDK
Service account API access
Use Grafana service accounts when an external system needs to call Assistant APIs without a signed-in user.
Create a Grafana service account, grant it the Assistant permissions required for the API action, and generate a service account token. Send requests through the Assistant plugin resource path with Authorization: Bearer followed by SERVICE_ACCOUNT_TOKEN.
Service account requests are attributed separately from user requests. Their token usage counts toward the service account usage path and any configured service account token limit.
HTTP APIs for external systems
The Grafana Assistant HTTP APIs enable external systems to create conversations, fetch messages, and stream chat events. Use this when integrating from outside Grafana or automating workflows.
Learn more about the HTTP APIs
Workflows in this hub
Browse the following workflows to choose an integration path and complete common tasks:
- TypeScript SDK for Grafana plugins
Use the @grafana/assistant package to integrate AI assistance into your Grafana plugins and apps. - HTTP APIs for external systems
Use HTTP APIs to integrate Grafana Assistant with external systems and automate workflows.
Next steps
Continue with these suggestions to explore and integrate:
- Open Grafana Assistant from the main navigation and click Integration hub for live examples
- Install
@grafana/assistantfrom npm - Review Grafana plugin development documentation
Was this page helpful?
Related resources from Grafana Labs


