InboundCallAssistantResponse

Properties

Link copied to clipboard
abstract var error: String

This is the error if the call shouldn't be accepted. This is spoken to the customer.
If this is sent, assistantId, assistant, squadId, squad, and destination are ignored.

Functions

Link copied to clipboard
abstract fun assistant(block: Assistant.() -> Unit): Assistant

This is the assistant that will be used for the call. To use an existing assistant, use assistantId instead.
If you're unsure why you're getting an invalid assistant, try logging your response and send the JSON blob to POST /assistant which will return the validation errors.

Link copied to clipboard
abstract fun assistantId(block: AssistantId.() -> Unit): AssistantId

This is the assistant that will be used for the call. To use a transient assistant, use assistant instead.

Link copied to clipboard
abstract fun numberDestination(block: NumberDestination.() -> Unit): NumberDestination

This is the destination to transfer the inbound call to. This will immediately transfer to a number without using any assistants.
If this is sent, assistantId, assistant, squadId, and squad are ignored.

Link copied to clipboard
abstract fun sipDestination(block: SipDestination.() -> Unit): SipDestination

This is the destination to transfer the inbound call to. This will immediately transfer to a SIP refer without using any assistants.
If this is sent, assistantId, assistant, squadId, and squad are ignored.

Link copied to clipboard
abstract fun squad(block: Squad.() -> Unit): Squad

This is a squad that will be used for the call. To use an existing squad, use squadId instead.

Link copied to clipboard
abstract fun squadId(block: SquadId.() -> Unit): SquadId

This is the squad that will be used for the call. To use a transient squad, use squad instead.