Coding agent prompts
AI coding agents work best when they have accurate, current context about the APIs they’re integrating with. AssemblyAI’s API surface changes — model names, parameters, and SDK methods evolve — so agents that rely on training data alone will produce outdated code.
The methods below are ranked by how reliably they keep your agent’s output correct. Use all three for the best results, or start with project instructions if you only pick one.
Project instructions
Add this line to your project’s CLAUDE.md, .cursorrules, or equivalent agent instructions file:
This tells your agent to pull the latest documentation before generating code, which prevents hallucinated parameters and outdated model names.
Why this is the most effective method: Project instructions run on every prompt. The agent will check current docs before writing any AssemblyAI code, catching breaking changes automatically.
Additional context files
AssemblyAI publishes machine-readable documentation indexes:
- llms.txt — Structured index of all documentation pages
- llms-full.txt — Full concatenated documentation content
Filter by language to reduce token usage:
Exclude the API spec to focus on guides:
MCP server
Connect the AssemblyAI docs MCP server to give your agent tool-based access to search and read documentation on demand.
Server URL:
Connecting (any MCP client with Streamable HTTP transport)
Claude Code:
Claude Cowork:
Cursor (.cursor/mcp.json):
Any MCP client that supports Streamable HTTP transport can connect using the server URL above.
Available tools
The MCP server provides four tools:
- search_docs — Search across all documentation pages
- get_pages — Retrieve full content of specific pages
- list_sections — Browse the documentation structure
- get_api_reference — Get API endpoint details and schemas
Claude Code skill
The AssemblyAI skill gives Claude Code curated instructions and context for working with AssemblyAI. It covers the Python and JavaScript SDKs, streaming, voice agents, audio intelligence, and more.
Install the skill:
Works with 60+ AI coding agents via the universal skills format:
Verify it’s installed:
Tips for best results
- Layer all three tools — Project instructions catch every prompt, the MCP server provides on-demand lookups, and the skill gives deep SDK context
- Be specific about the SDK — Say “use the AssemblyAI Python SDK” or “use the JavaScript SDK” rather than “use AssemblyAI”
- Reference the model — Specify
universal-3-profor pre-recorded oru3-rt-profor streaming to avoid outdated model names - Set your API key as an environment variable —
export ASSEMBLYAI_API_KEY=your_keyso the agent can reference it naturally