# Conversational Agent

From the Lero API docs: https://lero.studio/docs/en/ai#conversational-agent. Everything in one file: https://lero.studio/docs/en/llms-full.txt.

For your coding agent to integrate the live voice agent (for example, a technical interviewer that sees the code editor, or a support agent with your knowledge base), paste this prompt with your goal:

```text
Integrate the Lero Conversational Agent into my project. Read https://lero.studio/docs/en/llms-full.txt (sections Conversational Agent and "Conversational Agent: step by step") and https://lero.studio/docs/en/openapi.json (/agents and /agents/conversation). Rules: the WebRTC client creates the "chat" data channel before the offer; signaling goes through my backend, which keeps LERO_API_KEY; versao, llm and voz come from GET /v1/agents; my system prompt goes in "instrucoes" and my knowledge base in "conhecimento"; what the agent must see during the call goes through "lero-contexto". Goal: <describe here>.
```

The contract has the full request (`instrucoes`, `conhecimento`, `abertura`, `palavras`, `silencio_s`, `pesquisa`, `max_tokens`), the events and the errors. For automated tests without a browser, the agent can use the headless Python client of the [call route](https://lero.studio/docs/en#conversa).
