# Layercode ## Docs - [CLI Reference](https://docs.layercode.com/api-reference/cli.md): Layercode CLI command reference and usage guide. - [Frontend WebSocket API](https://docs.layercode.com/api-reference/frontend-ws-api.md): Layercode WebSocket API for browser and mobile based voice agent experiences. - [Layercode API reference](https://docs.layercode.com/api-reference/introduction.md): Choose the right Layercode API surface for your workflow. - [REST API](https://docs.layercode.com/api-reference/rest-api.md): API reference for the Layercode REST API. - [Webhook SSE API](https://docs.layercode.com/api-reference/webhook-sse-api.md): Webhook SSE API - [Setting up AGENTS.md and CLAUDE.md (and llms.txt)](https://docs.layercode.com/explanations/agents-md.md): How to set up an AGENTS.md and CLAUDE.md for working with Layercode and how to find llms.txt - [Connect Your Backend](https://docs.layercode.com/explanations/connect-backend.md): How to connect your own agent backend to a Layercode agent. - [Keeping track of conversation history](https://docs.layercode.com/explanations/conversation-history.md): How to persist turn-by-turn context when webhook requests can abort - [How connecting to Layercode works](https://docs.layercode.com/explanations/how-connect-works.md): Visual diagram of how your app connects to Layercode - [How Layercode works](https://docs.layercode.com/explanations/how-layercode-works.md): What Layercode does and how you can get setup with Layercode - [Reducing latency with Layercode](https://docs.layercode.com/explanations/latency.md): How to reduce latency with your voice ai agents. - [Tool calling](https://docs.layercode.com/explanations/tool-calling.md): How to set up tool calling with Layercode. Also known as function calling. - [Voice Pipeline Config](https://docs.layercode.com/explanations/voice-pipeline.md): Learn how to configure LayerCode's voice pipeline for real-time conversations - [How webhooks work with Layercode](https://docs.layercode.com/explanations/webhooks.md): How to receive events from Layercode - [Attach custom metadata and headers to webhooks](https://docs.layercode.com/how-tos/custom-webhook-metadata-and-headers.md): Pass tenant-specific context and outbound headers when authorizing sessions so every webhook contains the data your backend needs. - [Deploy Next.js to Cloudflare](https://docs.layercode.com/how-tos/deploy-nextjs-to-cloudflare.md): Some tips when deploying a Next.js voice agent to Cloudflare - [Deploy Next.js to Vercel](https://docs.layercode.com/how-tos/deploy-nextjs-to-vercel.md): Some tips when deploying a voice agent to Vercel - [Deploying to production](https://docs.layercode.com/how-tos/deploying.md): Point Layercode to your production backend and manage environments - [Connect to MCP servers with AI SDK](https://docs.layercode.com/how-tos/mcp-ai-sdk.md): How to get your voice agents to use Model Context Protocol (MCP) tools with AI SDK and Layercode - [Multi-agents and agent transfers](https://docs.layercode.com/how-tos/multi-agents-agent-transfers.md): How to orchestrate multiple, task-specific AI SDK agents while keeping one consistent Layercode voice - [Outbound calls with Twilio](https://docs.layercode.com/how-tos/outbound-calls.md): Using your Layercode Agent to make outbound phone calls - [Post-call analysis of transcripts and saving recordings](https://docs.layercode.com/how-tos/post-call-analysis.md): Capture transcripts and recordings once a call finishes and run analysis with LLMs - [How to write prompts for voice agents](https://docs.layercode.com/how-tos/prompting.md): Some quick examples and tips for writing prompts for voice AI. - [Enable push-to-talk in React/Next.js](https://docs.layercode.com/how-tos/push-to-talk.md): Configure push-to-talk turn taking with the Layercode React SDK. - [Send JSON data from the client](https://docs.layercode.com/how-tos/send-json-data.md): Forward events to your frontend to your agent backend without interrupting the live conversation - [Send text messages from the client](https://docs.layercode.com/how-tos/send-text-messages.md): Capture text input in your UI and hand it to a Layercode agent without streaming audio. - [Sending data to your client from Layercode stream](https://docs.layercode.com/how-tos/sending-data-to-client.md): How to send data to your client via the Layercode stream - [Inbound calls with Twilio](https://docs.layercode.com/how-tos/setting-up-twilio.md): Setting up a voice agent to receive phone calls for you - [Tool calling in Next.js with Layercode](https://docs.layercode.com/how-tos/tool-calling-js.md): How to setup tool calling in Next.js with Layercode and ai sdk. - [Troubleshooting Next.js](https://docs.layercode.com/how-tos/troubleshooting-nextjs.md): Some releavant tips and gotchas when building with Next.js and Layercode - [Create a Cloudflare tunnel for webhooks](https://docs.layercode.com/how-tos/tunnelling.md): Expose your local backend to Layercode using Cloudflare Tunnel. - [Introduction](https://docs.layercode.com/intro.md): Layercode makes it easy for developers to build low-latency, production-ready voice AI agents - [Node.js Backend SDK](https://docs.layercode.com/sdk-reference/node-js-sdk.md): API reference for the Layercode Node.js Backend SDK. - [Python Backend SDK](https://docs.layercode.com/sdk-reference/python-sdk.md): API reference for the Layercode Python Backend SDK. - [React Frontend SDK](https://docs.layercode.com/sdk-reference/react-sdk.md): Connect your React application to Layercode agents and build web and mobile voice AI applications. - [Vanilla JS Frontend SDK](https://docs.layercode.com/sdk-reference/vanilla-js-sdk.md): API reference for the Layercode Vanilla JS Frontend SDK. - [Quick start](https://docs.layercode.com/tutorials/getting-started.md): Create your first AI voice agent in minutes. ## OpenAPI Specs - [openapi](https://docs.layercode.com/api-reference/openapi.json) Built with [Mintlify](https://mintlify.com).