Skip to content

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

StackPrompt summary
ExpressAmlexiaMiddleware on Express app
FastAPIAmlexiaMiddleware on FastAPI
Next.jswithAmlexia on Route Handlers only

Full prompt library (all frameworks, OTEL, LLM tracking, verification):

GitHub — AI_SETUP_PROMPTS.md

After the AI finishes

  1. Set AMLEXIA_SDK_KEY in your deployment.
  2. Deploy and hit an endpoint.
  3. Confirm events at app.amlexia.com.

Support: support@amlexia.com