Documentation for automated readers
A curated documentation index is available at: https://grafana.com/llms.txt
A complete documentation index is available at: https://grafana.com/llms-full.txt
These indexes can help with page discovery before fetching individual documents.
This page is also available in Markdown, which may be easier for automated readers and AI tools to parse than HTML. The Markdown version is available at https://grafana.com/docs/grafana-cloud/machine-learning/assistant/reference.md, or by sending Accept: text/markdown to https://grafana.com/docs/grafana-cloud/machine-learning/assistant/reference/. For broader documentation discovery, the curated index is available at https://grafana.com/llms.txt and the complete index is available at 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


