Forum Discussion

JFM_12's avatar
JFM_12
Iron Contributor
Dec 05, 2023
Solved

Teams - Change greeting message for Call flow during holiday

Hello We have lots of AutoAttendants. I am looking for a script to change the greeting message. Is there a script that changes the greeting message? Thank you very much Have a great day JFM_12
  • LeonPavesic's avatar
    Dec 05, 2023

    Hi JFM_12,

    to change the greeting message of your Auto Attendants in Microsoft Teams using PowerShell, follow these steps:

    1. Open PowerShell and connect to Teams using the Teams PowerShell Module.
    2. Utilize the Set-CsAutoAttendant cmdlet to modify the greeting message.

    Here's an example script:

     

     

    $Prompt = New-CsAutoAttendantPrompt -ActiveType TextToSpeech -TextToSpeechPrompt "Your new greeting message"
    $MenuOption = New-CsAutoAttendantMenuOption -Action TransferToOperator -DtmfResponse Automatic -VoiceResponseList "operator"
    $Menu = New-CsAutoAttendantMenu -Name "mainMenu" -MenuOptions $MenuOption
    $CallFlow = New-CsAutoAttendantCallFlow -Name "mainFlow" -Menu $Menu
    Set-CsAutoAttendant -Identity "Your Auto Attendant Identity" -CallFlows $CallFlow -DefaultCallFlowName "mainFlow"

     

    Replace "Your new greeting message" with your desired text and "Your Auto Attendant Identity" with the actual identity of your Auto Attendant²

     

    For more details, refer to the PowerShell cmdlet reference for Auto attendants and Call queues:
    PowerShell cmdlet reference for Auto attendants and Call queues - Microsoft Teams | Microsoft Learn
    Set-CsAutoAttendant (SkypeForBusiness) | Microsoft Learn


    Please click Mark as Best Response & Like if my post helped you to solve your issue.
    This will help others to find the correct solution easily. It also closes the item.


    If the post was useful in other ways, please consider giving it Like.


    Kindest regards,


    Leon Pavesic
    (LinkedIn)