first-message and first-message-mode API parameter...
# support
f
I want to learn a little more about above mentioned 2 parameters. I did not find any useful documentation, can you please help. first-message and first-message-mode
v
message has been deleted
@flake9 Certainly! Let's go over the two parameters you mentioned: 1. `firstMessage`: This parameter is used to specify the initial message that the assistant will say or play when a voice session starts. It can be a text string that the assistant will speak out using text-to-speech, or it can be a URL pointing to an audio file (like an mp3 or wav file) that the assistant will play. If this parameter is not specified, the assistant will wait for the user to speak first and then respond accordingly. 2. `firstMessageMode`: It seems there might be a slight confusion here, as the parameter you've mentioned is not
firstMessageMode
but rather
voicemailDetection
. The
voicemailDetection
parameter is an object that contains settings to configure or disable the detection of voicemail systems when making outbound calls. This is useful for ensuring that messages are delivered to actual recipients rather than being left on voicemail systems. The
voicemailDetection
object typically includes a
provider
field, which is an enumeration that specifies the method or service used for detecting voicemails. If you need more detailed information or specific use cases for these parameters, please let me know, and I'll be happy to provide further assistance!
You can continue this conversation by mentioning me in the message.
s
^^
s
@flake9 This is the mode for the first message. Default is 'assistant-speaks-first'.\n\nUse:\n- 'assistant-speaks-first' to have the assistant speak first.\n- 'assistant-waits-for-user' to have the assistant wait for the user to speak first.\n- 'assistant-speaks-first-with-model-generated-message' to have the assistant speak first with a message generated by the model based on the conversation state. (
assistant.model.messages
at call start,
call.messages
at squad transfer points).\n\n@default 'assistant-speaks-first'
24 Views