microsoft/teams.net

Public

mirrored fromhttps://github.com/microsoft/teams.netAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
v2.0.8

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

core/test/Microsoft.Teams.Apps.BotBuilder.UnitTests/TestData/SuggestedActionsActivity.json

241lines · modecode

1{
2 "type": "message",
3 "isTargeted" : false,
4 "serviceUrl": "https://smba.trafficmanager.net/teams",
5 "from": {
6 "id": "a1b2c3d4-e5f6-47a8-b9c0-d1e2f3a4b5c6"
7 },
8 "recipient": {},
9 "conversation": {
10 "id": "19:xYz9pQrS8tUv5wXy3zAbCdEfGhIjKlMnOpQrStUvWx-Y2@thread.tacv2"
11 },
12 "text": "Hi there.\n\nI'm working on a status report and will share it in this chat shortly. You'll be able to make edits, and once it's ready, send it to the channel.\n\n\n\nYou can add more reviewers anytime.",
13 "inputHint": "acceptingInput",
14 "suggestedActions": {
15 "actions": [
16 {
17 "type": "Action.Odsl",
18 "title": "Add reviewers",
19 "value": {
20 "actions": {
21 "odsl": {
22 "statements": [
23 {
24 "name": "statusReportConfiguration",
25 "arguments": [
26 {
27 "name": "agentId",
28 "value": ""
29 },
30 {
31 "name": "agentName",
32 "value": "PA Test"
33 },
34 {
35 "name": "agentType",
36 "value": 0
37 },
38 {
39 "name": "teamId",
40 "value": ""
41 },
42 {
43 "name": "channelId",
44 "value": "19:xYz9pQrS8tUv5wXy3zAbCdEfGhIjKlMnOpQrStUvWx-Y2@thread.tacv2"
45 },
46 {
47 "name": "recurrence",
48 "value": {
49 "pattern": {
50 "patternType": "test"
51 },
52 "range": {
53 "startDate": "test",
54 "endDate": "test"
55 }
56 }
57 },
58 {
59 "name": "approvalList",
60 "value": [
61 "123",
62 "345"
63 ]
64 },
65 {
66 "name": "welcomeMessageType",
67 "value": "ApproversChat"
68 },
69 {
70 "name": "chatId",
71 "value": "19:xYz9pQrS8tUv5wXy3zAbCdEfGhIjKlMnOpQrStUvWx-Y2@thread.tacv2"
72 },
73 {
74 "name": "displayText",
75 "value": "Add reviewers"
76 },
77 {
78 "name": "deleteAgentDisplayText",
79 "value": ""
80 }
81 ]
82 }
83 ]
84 }
85 },
86 "entities": [
87 "chat"
88 ]
89 }
90 },
91 {
92 "type": "Action.Odsl",
93 "title": "Open agent settings",
94 "value": {
95 "actions": {
96 "odsl": {
97 "statements": [
98 {
99 "name": "agentConfiguration",
100 "arguments": [
101 {
102 "name": "agentId",
103 "value": ""
104 },
105 {
106 "name": "agentName",
107 "value": "PA Test"
108 },
109 {
110 "name": "agentType",
111 "value": 0
112 },
113 {
114 "name": "teamId",
115 "value": ""
116 },
117 {
118 "name": "channelId",
119 "value": "19:xYz9pQrS8tUv5wXy3zAbCdEfGhIjKlMnOpQrStUvWx-Y2@thread.tacv2"
120 },
121 {
122 "name": "recurrence",
123 "value": {
124 "pattern": {
125 "patternType": "test"
126 },
127 "range": {
128 "startDate": "test",
129 "endDate": "test"
130 }
131 }
132 },
133 {
134 "name": "approvalList",
135 "value": [
136 "123",
137 "345"
138 ]
139 },
140 {
141 "name": "welcomeMessageType",
142 "value": "ApproversChat"
143 },
144 {
145 "name": "chatId",
146 "value": "19:xYz9pQrS8tUv5wXy3zAbCdEfGhIjKlMnOpQrStUvWx-Y2@thread.tacv2"
147 },
148 {
149 "name": "displayText",
150 "value": "Open agent settings"
151 },
152 {
153 "name": "deleteAgentDisplayText",
154 "value": ""
155 }
156 ]
157 }
158 ]
159 }
160 },
161 "entities": [
162 "chat"
163 ]
164 }
165 },
166 {
167 "type": "Action.Compose",
168 "title": "Ask me a question",
169 "value": {
170 "type": "Teams.chatMessage",
171 "data": {
172 "body": {
173 "additionalData": {},
174 "backingStore": {
175 "returnOnlyChangedValues": false,
176 "initializationCompleted": true
177 },
178 "content": "<at id=\"0\">PA Test</at>"
179 },
180 "mentions": [
181 {
182 "additionalData": {},
183 "backingStore": {
184 "returnOnlyChangedValues": false,
185 "initializationCompleted": false
186 },
187 "id": 0,
188 "mentioned": {
189 "additionalData": {},
190 "backingStore": {
191 "returnOnlyChangedValues": false,
192 "initializationCompleted": false
193 },
194 "odataType": "#microsoft.graph.chatMessageMentionedIdentitySet",
195 "user": {
196 "additionalData": {},
197 "backingStore": {
198 "returnOnlyChangedValues": false,
199 "initializationCompleted": false
200 },
201 "displayName": "PA Test",
202 "id": "28:a1b2c3d4-e5f6-47a8-b9c0-d1e2f3a4b5c6",
203 "appId": ""
204 }
205 },
206 "mentionText": "PA Test"
207 }
208 ],
209 "additionalData": {},
210 "backingStore": {
211 "returnOnlyChangedValues": false,
212 "initializationCompleted": true
213 }
214 }
215 }
216 }
217 ]
218 },
219 "attachments": [],
220 "entities": [
221 {
222 "type": "https://schema.org/Message",
223 "@context": "https://schema.org",
224 "@type": "Message",
225 "additionalType": [
226 "AIGeneratedContent"
227 ]
228 },
229 {
230 "type": "BotMessageMetadata",
231 "botTelemetryMessageType": "Welcome-AddApproverChat",
232 "aiMetadata": {
233 "botAiSkill": "{\"cv\":\"GsaulSWnUUWlHf97qANDWA.0.0\",\"reasoningActive\":false}"
234 }
235 }
236 ],
237 "channelData": {
238 "feedbackLoopEnabled": true
239 },
240 "replyToId": "f7e8d9c0-b1a2-4536-9271-a8b9c0d1e2f3"
241}
242