|
| 1 | +--- |
| 2 | +applicable: Microsoft Teams |
| 3 | +author: minwoolee-msft |
| 4 | +external help file: Microsoft.Rtc.Management.Hosted.dll-help.xml |
| 5 | +Locale: en-US |
| 6 | +Module Name: MicrosoftTeams |
| 7 | +ms.author: tomkau |
| 8 | +ms.reviewer: williamlooney |
| 9 | +online version: https://learn.microsoft.com/powershell/module/microsoftteams/New-CsAgent |
| 10 | +schema: 2.0.0 |
| 11 | +title: New-CsAgent |
| 12 | +--- |
| 13 | + |
| 14 | +# New-CsAgent |
| 15 | + |
| 16 | +## SYNOPSIS |
| 17 | +Use the New-CsAgent cmdlet to create an AI Agent that can be associated with a Teams Phone Resource Account. |
| 18 | + |
| 19 | +## SYNTAX |
| 20 | + |
| 21 | +``` |
| 22 | +New-CsAgent -Name <String> -AIAgentId <String> -AIAgentType <String> [-AIAgentTargetTagTemplateId <String>] [<CommonParameters>] |
| 23 | +``` |
| 24 | + |
| 25 | +## DESCRIPTION |
| 26 | +Use the New-CsAgent cmdlet to create an AI Agent in the tenant. The AI Agent represents an external conversational provider (such as Microsoft Copilot Studio) that can answer calls on behalf of a Teams Phone Resource Account. After the agent is created, associate it with a Resource Account by using `New-CsOnlineApplicationInstanceAssociation`; the agent is not reachable until the association is made. |
| 27 | + |
| 28 | +> [!CAUTION] |
| 29 | +> This cmdlet will only work for customers that are participating in the AI Agent private preview for this feature. General Availability for this functionality has not been determined at this time. |
| 30 | +
|
| 31 | +## EXAMPLES |
| 32 | + |
| 33 | +### Example 1 |
| 34 | +``` |
| 35 | +New-CsAgent -Name "SmartAgent" -AIAgentId "9e6a9737-edbe-4452-9ec8-702944ef6a07" -AIAgentType "MicrosoftCopilotStudio" |
| 36 | +``` |
| 37 | + |
| 38 | +This example creates a new AI Agent that is associated with Microsoft Copilot Studio. |
| 39 | + |
| 40 | +## PARAMETERS |
| 41 | + |
| 42 | +### -Name |
| 43 | + |
| 44 | +The name of the AI Agent. |
| 45 | + |
| 46 | +```yaml |
| 47 | +Type: String |
| 48 | +Parameter Sets: (All) |
| 49 | +Aliases: |
| 50 | + |
| 51 | +Required: True |
| 52 | +Position: Named |
| 53 | +Default value: None |
| 54 | +Accept pipeline input: False |
| 55 | +Accept wildcard characters: False |
| 56 | +``` |
| 57 | +
|
| 58 | +### -AIAgentId |
| 59 | +
|
| 60 | +The ID of the agent as issued by the AI provider (for example, the Microsoft Copilot Studio agent ID). |
| 61 | +
|
| 62 | +```yaml |
| 63 | +Type: String |
| 64 | +Parameter Sets: (All) |
| 65 | +Aliases: |
| 66 | + |
| 67 | +Required: True |
| 68 | +Position: Named |
| 69 | +Default value: None |
| 70 | +Accept pipeline input: False |
| 71 | +Accept wildcard characters: False |
| 72 | +``` |
| 73 | +
|
| 74 | +### -AIAgentType |
| 75 | +
|
| 76 | +The type of AI Agent provider. Currently supported value: MicrosoftCopilotStudio. |
| 77 | +
|
| 78 | +```yaml |
| 79 | +Type: String |
| 80 | +Parameter Sets: (All) |
| 81 | +Aliases: |
| 82 | + |
| 83 | +Required: True |
| 84 | +Position: Named |
| 85 | +Default value: None |
| 86 | +Accept pipeline input: False |
| 87 | +Accept wildcard characters: False |
| 88 | +``` |
| 89 | +
|
| 90 | +### -AIAgentTargetTagTemplateId |
| 91 | +
|
| 92 | +Tag Template Id of this AI Agent. If given, this command will validate if the given tag template id exists or not. If the given Id of the tag template does not exist, this command will fail. |
| 93 | +
|
| 94 | +```yaml |
| 95 | +Type: System.String |
| 96 | +Parameter Sets: (All) |
| 97 | +Aliases: |
| 98 | + |
| 99 | +Required: false |
| 100 | +Position: Named |
| 101 | +Default value: None |
| 102 | +Accept pipeline input: False |
| 103 | +Accept wildcard characters: False |
| 104 | +``` |
| 105 | +
|
| 106 | +### CommonParameters |
| 107 | +
|
| 108 | +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](https://go.microsoft.com/fwlink/?LinkID=113216). |
| 109 | +
|
| 110 | +## INPUTS |
| 111 | +
|
| 112 | +### None |
| 113 | +
|
| 114 | +## OUTPUTS |
| 115 | +
|
| 116 | +### Microsoft.Rtc.Management.OAA.Models.AIAgentConfiguration |
| 117 | +
|
| 118 | +## NOTES |
| 119 | +
|
| 120 | +## RELATED LINKS |
| 121 | +
|
| 122 | +[Get-CsAgent](./Get-CsAgent.md) |
| 123 | +
|
| 124 | +[Set-CsAgent](./Set-CsAgent.md) |
| 125 | +
|
| 126 | +[Remove-CsAgent](./Remove-CsAgent.md) |
| 127 | +
|
| 128 | +[New-CsTagsTemplate](./New-CsTagsTemplate.md) |
| 129 | +
|
| 130 | +[New-CsOnlineApplicationInstanceAssociation](./New-CsOnlineApplicationInstanceAssociation.md) |
0 commit comments