await initSidenet({
copilotId: 'copilot-456',
auth: { ...tokens },
sdkUi: {
text: {
greeting: { title: 'Hello!', subtitle: 'Pick a quick action below.' },
placeholder: 'Ask anything…',
suggestions: [
// agentId binds the next send to a specific agent (matched against the
// loaded agent list).
{ title: 'Refunds this week', subtitle: '', agentId: 'a3afed78-174a-43fe-8744-5598014d08bb' },
// Looser editTolerance — user can rewrite up to 40% before the binding drops.
{ title: 'Top selling hotel', subtitle: 'today', agentId: 'ac5e1034-c2f9-4897-abf4-2665eb12f331', editTolerance: 0.4 },
// System prompt only — biases the assistant for this one send (no agent binding).
{ title: 'Translate to French', subtitle: 'next message', prompt: 'Respond in concise French regardless of input language.' },
// No agentId → routes through the default (dropdown selection or auto).
{ title: 'Free-form question', subtitle: 'no agent bound' },
],
},
},
});
// Or at runtime — partial updates merge into the existing config:
updateSidenetStyledConfig({
text: {
suggestions: [
{ title: 'New idea', subtitle: '', agentId: 'ac5e1034-c2f9-4897-abf4-2665eb12f331' },
],
},
});