Commands › Microsoft Teams

New-CsAutoAttendantCallFlow

Microsoft Teams MicrosoftTeams New-*

Create a new call flow.

Quick start script

# New-CsAutoAttendantCallFlow — quick start (serv365.ai)
# 1. Connect (app-only shown; interactive: omit the certificate parameters)
Connect-MicrosoftTeams -CertificateThumbprint $thumb -ApplicationId $appId -TenantId $tenantId

# 2. Capture the current state first — you cannot roll back what you never recorded
$before = Get-CsAutoAttendantCallFlow
$before | Format-List

# 3. Make the change
New-CsAutoAttendantCallFlow -Menu <Object> -Name <String> -TimeoutDisconnectPromptCustomText <String>

# 4. Verify and diff
$after = Get-CsAutoAttendantCallFlow
Compare-Object ($before | Out-String) ($after | Out-String)

Syntax

New-CsAutoAttendantCallFlow -Name <String> -Menu <Object> [-Greetings <List>] [-ForceListenMenuEnabled] [-RingResourceAccountDelegates <Boolean>] [-TimeoutThreshold <Int16>] [-TimeoutDisconnectPromptType <String>] [-TimeoutDisconnectPromptCustomText <String>] [-AiDisclaimerType <String>] [-AiDisclaimerCustomText <String>] [-Tenant <Guid>] [<CommonParameters>]

Parameters (11)

ParameterTypeRequiredWhat it controls
-ForceListenMenuEnabled SwitchParameter If specified, DTMF and speech inputs will not be processed while the greeting or menu prompt is playing. It will enforce callers to listen to all menu options before making a selection.
-Greetings List If present, the prompts specified by the Greetings parameter (either TTS or Audio) are played before the call flow's menu is rendered.
-Menu Object yes The Menu parameter identifies the menu to render when the call flow is executed.
-Name String yes The Name parameter represents a unique friendly name for the call flow.
-RingResourceAccountDelegates Boolean If enabled for this call flow, Auto Attendant will first ring the delegates assigned to the resource account the call is on. If none of the delegates answer, the call is returned to the Auto Attendant for standard processing.
-TimeoutThreshold Int16 **This option applies to Teams Phone Agent only.**
-TimeoutDisconnectPromptType String **This option applies to Teams Phone Agent only.**
-TimeoutDisconnectPromptCustomText String yes **This option applies to Teams Phone Agent only.**
-AiDisclaimerType String **This option applies to Teams Phone Agent only.**
-AiDisclaimerCustomText String yes **This option applies to Teams Phone Agent only.**
-Tenant Guid This parameter is reserved for Microsoft internal use only.

Reference facts derived from Microsoft documentation, © Microsoft, licensed CC BY 4.0; restructured with original guidance by serv365.ai.