Skip to content
Talk to an engineer

Customize & configure

Interaction and communication

These settings control how users communicate with the agent: by typing, by speaking, or both. Pass these flags to setConfiguration.

Lets users hold a real-time voice conversation with the agent instead of typing.

Type: boolean
Default value: false

Adds a microphone button to the chat interface. When a user clicks the mic, their speech is recorded and transcribed into a text prompt.

Type: boolean
Default value: false

foldspace.agent('YOUR-AGENT-KEY').setConfiguration({
enableVoiceChat: true,
enableSpeechToText: true,
});