AI setup prompts
Use these prompts with ChatGPT, Claude, GitHub Copilot, or Cursor to wire Amlexia into your codebase.
TIP
Copy the full prompt block, fill in the [PASTE ...] section at the bottom with your file paths and framework, then run.
Universal (any stack)
Click to expand — copy prompt
text
You are integrating Amlexia observability into my application.
Official packages:
- Node.js: npm install @amlexiahq/node
- Python: pip install amlexia
Required: AMLEXIA_SDK_KEY (server-side only), optional AMLEXIA_INGEST_URL (default https://ingest.amlexia.com)
Security: Never expose SDK key in frontend or git.
Tasks:
1. Detect my framework and install the correct package.
2. Add HTTP middleware or manual track() for background jobs.
3. Update .env.example with AMLEXIA_* variables.
4. Call client.shutdown() on process shutdown.
5. Track OpenAI/Stripe outbound calls with provider and latency when applicable.
Node imports: @amlexiahq/node/express, /fastify, /hono, /next
Python: amlexia.fastapi_integration, flask_integration, django_integration
My project:
[PASTE framework, entry files, and language]By framework
| Stack | Prompt summary |
|---|---|
| Express | AmlexiaMiddleware on Express app |
| FastAPI | AmlexiaMiddleware on FastAPI |
| Next.js | withAmlexia on Route Handlers only |
Full prompt library (all frameworks, OTEL, LLM tracking, verification):
After the AI finishes
- Set
AMLEXIA_SDK_KEYin your deployment. - Deploy and hit an endpoint.
- Confirm events at app.amlexia.com.
Support: support@amlexia.com
