You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+18Lines changed: 18 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -89,6 +89,19 @@ The parameters are:
89
89
2. The path to the activity field
90
90
3. The value of the activity field
91
91
92
+
Another option for having full control over the activity is to use the **DIRECTLINE3_ACTIVITY_TEMPLATE** capability. It is a JSON structure used as a template when sending an activity to the bot.
93
+
94
+
```
95
+
...
96
+
"DIRECTLINE3_ACTIVITY_TEMPLATE": {
97
+
"channelData": {
98
+
"my-special-channel-data": "..."
99
+
}
100
+
}
101
+
...
102
+
```
103
+
104
+
92
105
## Supported Capabilities
93
106
94
107
Set the capability __CONTAINERMODE__ to __directline3__ to activate this connector.
@@ -143,6 +156,11 @@ When using activity types other than _message_, this capability maps the activit
143
156
144
157
By default, for _event_ activities the _name_ attribute is used as message text, for other activity types the activity type itself.
145
158
159
+
### DIRECTLINE3_ACTIVITY_TEMPLATE
160
+
_default: {}_
161
+
162
+
JSON object holding the activity template used for sending activities to the bot.
163
+
146
164
# Current Restrictions
147
165
148
166
* Only HTTP Polling supported (WebSocket not available in Node.js)
0 commit comments