Skip to content

Commit 863a86c

Browse files
chore: update README and env vars to clarify agent name and agent dispatch responsibilities (#312)
1 parent 491c57b commit 863a86c

3 files changed

Lines changed: 23 additions & 8 deletions

File tree

.env.example

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ LIVEKIT_API_KEY=<your_api_key>
33
LIVEKIT_API_SECRET=<your_api_secret>
44
LIVEKIT_URL=wss://<project-subdomain>.livekit.cloud
55

6+
# Agent dispatch (https://docs.livekit.io/agents/server/agent-dispatch)
7+
# Leave AGENT_NAME blank to enable automatic dispatch
8+
# Provide an agent name to enable explicit dispatch
9+
AGENT_NAME=
610

711
# Internally used environment variables
812
NEXT_PUBLIC_APP_CONFIG_ENDPOINT=

README.md

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,17 +93,19 @@ export const APP_CONFIG_DEFAULTS: AppConfig = {
9393
accentDark: '#1fd5f9',
9494
startButtonText: 'Start call',
9595

96-
// for LiveKit Cloud Sandbox
97-
sandboxId: undefined,
96+
// agent dispatch configuration
9897
agentName: undefined,
98+
99+
// LiveKit Cloud Sandbox configuration
100+
sandboxId: undefined,
99101
};
100102
```
101103

102104
You can update these values in [`app-config.ts`](./app-config.ts) to customize branding, features, and UI text for your deployment.
103105

104106
> [!NOTE]
105-
> The `sandboxId` and `agentName` are for the LiveKit Cloud Sandbox environment.
106-
> They are not used for local development.
107+
> The `sandboxId` is for the LiveKit Cloud Sandbox environment.
108+
> It is not used for local development.
107109
108110
#### Environment Variables
109111

@@ -113,6 +115,11 @@ You'll also need to configure your LiveKit credentials in `.env.local` (copy `.e
113115
LIVEKIT_API_KEY=your_livekit_api_key
114116
LIVEKIT_API_SECRET=your_livekit_api_secret
115117
LIVEKIT_URL=https://your-livekit-server-url
118+
119+
# Agent dispatch (https://docs.livekit.io/agents/server/agent-dispatch)
120+
# Leave AGENT_NAME blank to enable automatic dispatch
121+
# Provide an agent name to enable explicit dispatch
122+
AGENT_NAME=
116123
```
117124

118125
These are required for the voice agent functionality to work with your LiveKit project.

app-config.ts

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,11 @@ export interface AppConfig {
1414
logoDark?: string;
1515
accentDark?: string;
1616

17-
// for LiveKit Cloud Sandbox
18-
sandboxId?: string;
17+
// agent dispatch configuration
1918
agentName?: string;
19+
20+
// LiveKit Cloud Sandbox configuration
21+
sandboxId?: string;
2022
}
2123

2224
export const APP_CONFIG_DEFAULTS: AppConfig = {
@@ -35,7 +37,9 @@ export const APP_CONFIG_DEFAULTS: AppConfig = {
3537
accentDark: '#1fd5f9',
3638
startButtonText: 'Start call',
3739

38-
// for LiveKit Cloud Sandbox
40+
// agent dispatch configuration
41+
agentName: process.env.AGENT_NAME ?? undefined,
42+
43+
// LiveKit Cloud Sandbox configuration
3944
sandboxId: undefined,
40-
agentName: undefined,
4145
};

0 commit comments

Comments
 (0)