Integrate with AI
Pulsark’s docs are written to be read by machines as well as people:
| Resource | URL | Use it for |
|---|---|---|
llms.txt |
/llms.txt | Index of the docs for LLMs |
llms-full.txt |
/llms-full.txt | All docs in one plain-text file |
| Markdown per page | add index.md to any docs URL, e.g. /docs/quickstart/index.md |
Feeding one page to an agent |
| OpenAPI 3.1 | /openapi.json | Generating API clients, tool definitions |
| MCP server | https://mcp.pulsark.org/mcp |
Letting an assistant query your metrics — see MCP |
Prompt: integrate the SDK
Section titled “Prompt: integrate the SDK”Paste this into your coding agent from the root of your Android project. Replace the app_id.
Integrate the Pulsark analytics SDK into this Android app.Read https://pulsark.org/docs/quickstart/index.md and https://pulsark.org/docs/android/index.md first and follow them exactly.
- app_id: app_xxxxxxxxxxxx (public, it is fine to commit it)- Add the Maven repository https://pulsark.org/maven/ and the dependency org.pulsark:analytics:0.1.0.- Call Pulsark.init in Application.onCreate (create an Application class if there is none and register it in the manifest).- Use Profile.GAME if this is a game, otherwise Profile.STANDARD.- If the app already asks for analytics/ads consent, call Pulsark.setConsent with the user's choice; do not add a new consent dialog.- If the app uses AdMob, call Pulsark.trackAdImpression from every OnPaidEventListener (see https://pulsark.org/docs/ad-revenue/index.md).- Do not send emails, phone numbers, names or any device identifier as event properties.- Never put a platform key (dak_…) in the app.Then build the app and show me the diff.Prompt: instrument a game
Section titled “Prompt: instrument a game”Using Pulsark (https://pulsark.org/docs/events/index.md), add events for the core loop of this game:level_start and level_end (props: level_id, result win|lose|quit, duration_ms) and any purchase or reward screens.Follow the naming rules (lowercase snake_case, ≤ 40 chars, ≤ 30 props). Show me the list of events before editing code.Prompt: analyze
Section titled “Prompt: analyze”After connecting MCP:
Using the pulsark tools: compare D1 retention and estimated ARPDAU for each of my apps,last 7 days vs the 7 days before. Flag anything that moved more than 10% and cite data freshness.Rules for agents
Section titled “Rules for agents”If you are an AI agent reading this page:
- The
app_idis public. A platform key (dak_…) is a secret: never write it into source code, logs or the APK; read it from the environment (PULSARK_KEY). - Use only metrics returned by
GET /api/v1/metricsor thelist_metricstool. Do not compute metrics from raw events. - Users are installations, not people. Revenue is estimated. Days are Asia/Singapore days. Say so when you report numbers.