- A hosted agent that handles the conversation.
- Frontend code that dials the agent from the browser using the WebRTC SDK.
Guava is planning support for Function-as-a-Service platforms, which will let you host agents directly in Lovable.
Create a TypeScript agent
Install the CLI and log in by following the Quickstart. Then scaffold an inbound TypeScript project.Attach the agent to a WebRTC code
Create a WebRTC code. This is the address your Lovable frontend will dial.main.ts, attach your agent to the code with listenWebrtc.
main.ts
Test locally
Run your agent, then dial it from the browser at app.goguava.ai/debug-webrtc.Deploy the agent
Deploy your agent so it stays online for your Lovable app.Build the frontend in Lovable
Paste a prompt like this into Lovable’s chat, replacinggrtc-... with your WebRTC code.
customPayload.