thankful-twilight-49934
12/11/2025, 7:45 AMtall-airline-16756
12/11/2025, 7:45 AMtall-airline-16756
12/11/2025, 7:46 AMagent-starter-python, agent-starter-react, kitt) that demonstrate building voice/multimodal agents and integrations.
• The Agent Builder supports no-code prototyping and deployment.
If you mean a specific "Ask AI" app: please share the link or where you saw it so I can check whether its repo is public or point you to the exact example.
Would you like links to the Agents docs and the example repos or the Agent Builder docs?
Sources: OpenAI and LiveKit | LiveKit docs | Google AI and LiveKit | LiveKit Docs | AWS AI and LiveKit | LiveKit Docs | Agent Builder | LiveKit docs | Live Conversations with AI using ChatGPT and WebRTCthankful-twilight-49934
12/11/2025, 7:47 AMtall-airline-16756
12/11/2025, 7:47 AMagent-starter-python, agent-starter-react, kitt) that show how voice/multimodal agents are implemented.
• Agents can be deployed to LiveKit Cloud or self-hosted environments. The LiveKit Agent Builder also enables no-code prototyping and deployment.
Knowledge base / data sources
• The assistant’s responses come from LLMs fed by prompts and any contextual documents you connect. Common knowledge sources used with agents:
◦ Internal documentation and site docs (for product-specific answers).
◦ Code examples and repo contents you attach.
◦ Configurable external knowledge stores (e.g., document collections or vector stores you provide) that the agent can query at runtime.
• The assistant does not rely on a single fixed internal corpus; you can supply or configure the documents and vector stores the agent should use for domain-specific knowledge.
If you’d like, I can:
• Share links to the Agents docs and example repos.
• Show a short example of how an agent is configured to use a vector store or attach product docs for better answers.
Which would you prefer?thankful-twilight-49934
12/11/2025, 7:48 AMtall-airline-16756
12/11/2025, 7:49 AMthankful-twilight-49934
12/11/2025, 2:40 PMtall-airline-16756
12/11/2025, 2:41 PMthankful-twilight-49934
12/11/2025, 2:42 PMtall-airline-16756
12/11/2025, 2:42 PMxoxb-...) and signing secret?
2. A LiveKit account/server and an active agent session or a plan to run an agent (Cloud or self-hosted)?
Also tell me your preferred server language (Node or Python) and whether you want a minimal working code example or just a high-level integration plan.
Sources: Text and transcriptions | LiveKit docs | Observability data hooks | LiveKit docsthankful-twilight-49934
12/11/2025, 2:43 PMtall-airline-16756
12/11/2025, 2:43 PMgenerate_reply) → agent reply → Slack (chat.postMessage)
Required Slack app config
• Scopes: chat:write, app_mentions:read, channels:history (adjust for DMs or private channels).
• Enable Event Subscriptions (or use Socket Mode). Subscribe to:
◦ app_mention (for mentions) or message.channels (for channel messages) or message.im (for DMs).
• Install app to workspace and save Bot Token (xoxb-...) and Signing Secret.
LiveKit agent prerequisites
• Running a LiveKit agent (Cloud or self-hosted) using the Agents SDK (Python or Node).
• Agent configured in text-only mode: STT/TTS disabled, text_input and text_output enabled.
• A persistent or on-demand AgentSession that can accept generate_reply(user_input=...).
Architecture notes
• Keep one AgentSession per Slack conversation or pool a session and pass conversation/context metadata.
• Use correlation IDs so replies map to the correct Slack message/channel.
• Handle rate limits and backpressure (queue messages if agent busy).
Python (FastAPI + Slack Events) minimal example 1) Start agent session (text-only)
# simplified; integrate into your agent process
from livekit.agents import AgentSession, RoomOptions, TextOutputOptions
session = AgentSession(
# stt=None, tts=None set in start options below
)
await session.start(
agent=MyAgent(),
room=ctx.room,
room_options=RoomOptions(
text_input=True,
text_output=TextOutputOptions(sync_transcription=False)
)
)
2) Slack event handler (FastAPI + slack_bolt simplified)
from slack_bolt.adapter.fastapi import SlackRequestHandler
from slack_bolt import App
from fastapi import FastAPI, Request
app = App(token="xoxb-...", signing_secret="...")
handler = SlackRequestHandler(app)
fastapi = FastAPI()
# assume agent_session is accessible
@app.event("app_mention")
def handle_mention(body, say):
user_text = body["event"]["text"]
# forward to LiveKit agent
result = await agent_session.generate_reply(user_input=user_text)
# get assistant text (example access; adapt to SDK run result)
assistant_msg = result.expect.next_event().is_message(role="assistant").event().item.content
say(text=assistant_msg)
@fastapi.post("/slack/events")
async def endpoint(request: Request):
return await handler.handle(request)
Node (Express + @slack/bolt) minimal example 1) Start agent session in Node Agent process (text-only) using Agents SDK (similar options as Python).
2) Slack handler
const { App } = require("@slack/bolt");
const express = require("express");
const app = express();
const slackApp = new App({ token: process.env.SLACK_BOT_TOKEN, signingSecret: process.env.SLACK_SIGNING_SECRET });
slackApp.event("app_mention", async ({ event, say }) => {
const userText = event.text;
// forward to LiveKit agent (assume agentSession is available)
const result = await agentSession.generate_reply({ user_input: userText });
// extract assistant text from result (adapt per SDK)
const assistantMsg = extractAssistantText(result);
await say(assistantMsg);
});
(async () => {
await slackApp.start(process.env.PORT || 3000);
})();
Key implementation details
• Extracting agent reply: the Agents SDK returns RunResult/streamed events. Use the SDK methods to read the assistant message text from the result or subscribe to session events.
• Context: pass conversation metadata or prior messages when calling generate_reply to keep context.
• Error handling: return friendly Slack messages on agent errors and log details.
• Security: validate Slack signatures, secure your LiveKit credentials, and restrict endpoints.
Deployment tips
• Run the Slack handler and agent either in the same service or communicate over a secure internal API.
• Use a small queue (Redis) if you expect bursts to avoid dropping messages while agent is busy.
• Monitor latency and scale agent workers as needed.
Want a full working repo-style example in Python or Node that you can drop into your environment? Which language do you want the complete example for (Python or Node)?