Implement the Layercode Webhook SSE API in your Cloudflare Workers (using Hono).
GOOGLE_GENERATIVE_AI_API_KEY
- Your Google AI API keyLAYERCODE_WEBHOOK_SECRET
- Your Layercode agent’s webhook secret, found in the Layercode dashboard (go to your agent, click Edit in the Your Backend Box and copy the webhook secret shown)client_session_key
(and optionally a conversation_id
) to the frontend. This key is required for the frontend to establish a secure WebSocket connection to Layercode.