Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

NodeJsCode.xml 8.5 KB

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <code lang="Node">
  3. <command type="AnimationCardScorable">
  4. <![CDATA[var card = new builder.AnimationCard(session)
  5. .title('Microsoft Bot Framework')
  6. .subtitle('Animation Card')
  7. .image(builder.CardImage.create(session, 'https://docs.microsoft.com/en-us/bot-framework/media/how-it-works/architecture-resize.png'))
  8. .media([
  9. { url: 'http://i.giphy.com/Ki55RUbOV5njy.gif' }
  10. ]);
  11. // attach the card to the reply message
  12. var msg = new builder.Message(session).addAttachment(card);
  13. ]]></command>
  14. <command type="AudioCardScorable">
  15. <![CDATA[var card = new builder.AudioCard(session)
  16. .title('I am your father')
  17. .subtitle('Star Wars: Episode V - The Empire Strikes Back')
  18. .text('The Empire Strikes Back (also known as Star Wars: Episode V – The Empire Strikes Back) is a 1980 American epic space opera film directed by Irvin Kershner. Leigh Brackett and Lawrence Kasdan wrote the screenplay, with George Lucas writing the film\'s story and serving as executive producer. The second installment in the original Star Wars trilogy, it was produced by Gary Kurtz for Lucasfilm Ltd. and stars Mark Hamill, Harrison Ford, Carrie Fisher, Billy Dee Williams, Anthony Daniels, David Prowse, Kenny Baker, Peter Mayhew and Frank Oz.')
  19. .image(builder.CardImage.create(session, 'https://upload.wikimedia.org/wikipedia/en/3/3c/SW_-_Empire_Strikes_Back.jpg'))
  20. .media([
  21. { url: 'http://www.wavlist.com/movies/004/father.wav' }
  22. ])
  23. .buttons([
  24. builder.CardAction.openUrl(session, 'https://en.wikipedia.org/wiki/The_Empire_Strikes_Back', 'Read More')
  25. ]);
  26. // attach the card to the reply message
  27. var msg = new builder.Message(session).addAttachment(card);
  28. ]]></command>
  29. <command type="CarouselCardsScorable">
  30. <![CDATA[var cards = [
  31. new builder.HeroCard(session)
  32. .title('BotFramework Hero Card')
  33. .subtitle('Your bots — wherever your users are talking')
  34. .text('Build and connect intelligent bots to interact with your users naturally wherever they are, from text/sms to Skype, Slack, Office 365 mail and other popular services.')
  35. .images([
  36. builder.CardImage.create(session, 'https://sec.ch9.ms/ch9/7ff5/e07cfef0-aa3b-40bb-9baa-7c9ef8ff7ff5/buildreactionbotframework_960.jpg')
  37. ])
  38. .buttons([
  39. builder.CardAction.openUrl(session, 'https://docs.microsoft.com/bot-framework/', 'Get Started')
  40. ]),
  41. new builder.ThumbnailCard(session)
  42. .title('BotFramework Thumbnail Card')
  43. .subtitle('Your bots — wherever your users are talking')
  44. .text('Build and connect intelligent bots to interact with your users naturally wherever they are, from text/sms to Skype, Slack, Office 365 mail and other popular services.')
  45. .images([
  46. builder.CardImage.create(session, 'https://sec.ch9.ms/ch9/7ff5/e07cfef0-aa3b-40bb-9baa-7c9ef8ff7ff5/buildreactionbotframework_960.jpg')
  47. ])
  48. .buttons([
  49. builder.CardAction.openUrl(session, 'https://docs.microsoft.com/bot-framework/', 'Get Started')
  50. ]),
  51. new builder.AnimationCard(session)
  52. .title('Microsoft Bot Framework')
  53. .subtitle('Animation Card')
  54. .image(builder.CardImage.create(session, 'https://docs.microsoft.com/en-us/bot-framework/media/how-it-works/architecture-resize.png'))
  55. .media([
  56. { url: 'http://i.giphy.com/Ki55RUbOV5njy.gif' }
  57. ]),
  58. new builder.VideoCard(session)
  59. .title('Big Buck Bunny')
  60. .subtitle('by the Blender Institute')
  61. .text('Big Buck Bunny (code-named Peach) is a short computer-animated comedy film by the Blender Institute, part of the Blender Foundation. Like the foundation\'s previous film Elephants Dream, the film was made using Blender, a free software application for animation made by the same foundation. It was released as an open-source film under Creative Commons License Attribution 3.0.')
  62. .image(builder.CardImage.create(session, 'https://upload.wikimedia.org/wikipedia/commons/thumb/c/c5/Big_buck_bunny_poster_big.jpg/220px-Big_buck_bunny_poster_big.jpg'))
  63. .media([
  64. { url: 'http://download.blender.org/peach/bigbuckbunny_movies/BigBuckBunny_320x180.mp4' }
  65. ])
  66. .buttons([
  67. builder.CardAction.openUrl(session, 'https://peach.blender.org/', 'Learn More')
  68. ])
  69. ];
  70. // create reply with Carousel AttachmentLayout
  71. var reply = new builder.Message(session)
  72. .attachmentLayout(builder.AttachmentLayout.carousel)
  73. .attachments(cards);
  74. ]]></command>
  75. <command type="HeroCardScorable">
  76. <![CDATA[var card = new builder.HeroCard(session)
  77. .title('BotFramework Hero Card')
  78. .subtitle('Your bots — wherever your users are talking')
  79. .text('Build and connect intelligent bots to interact with your users naturally wherever they are, from text/sms to Skype, Slack, Office 365 mail and other popular services.')
  80. .images([
  81. builder.CardImage.create(session, 'https://sec.ch9.ms/ch9/7ff5/e07cfef0-aa3b-40bb-9baa-7c9ef8ff7ff5/buildreactionbotframework_960.jpg')
  82. ])
  83. .buttons([
  84. builder.CardAction.openUrl(session, 'https://docs.microsoft.com/bot-framework/', 'Get Started')
  85. ]);
  86. // attach the card to the reply message
  87. var msg = new builder.Message(session).addAttachment(card);
  88. ]]></command>
  89. <command type="ReceiptCardScorable">
  90. <![CDATA[var card = new builder.ReceiptCard(session)
  91. .title('John Doe')
  92. .facts([
  93. builder.Fact.create(session, order++, 'Order Number'),
  94. builder.Fact.create(session, 'VISA 5555-****', 'Payment Method')
  95. ])
  96. .items([
  97. builder.ReceiptItem.create(session, '$ 38.45', 'Data Transfer')
  98. .quantity(368)
  99. .image(builder.CardImage.create(session, 'https://github.com/amido/azure-vector-icons/raw/master/renders/traffic-manager.png')),
  100. builder.ReceiptItem.create(session, '$ 45.00', 'App Service')
  101. .quantity(720)
  102. .image(builder.CardImage.create(session, 'https://github.com/amido/azure-vector-icons/raw/master/renders/cloud-service.png'))
  103. ])
  104. .tax('$ 7.50')
  105. .total('$ 90.95')
  106. .buttons([
  107. builder.CardAction.openUrl(session, 'https://azure.microsoft.com/en-us/pricing/', 'More Information')
  108. .image('https://raw.githubusercontent.com/amido/azure-vector-icons/master/renders/microsoft-azure.png')
  109. ]);
  110. // attach the card to the reply message
  111. var msg = new builder.Message(session).addAttachment(card);
  112. ]]></command>
  113. <command type="SigninCardScorable">
  114. <![CDATA[var card = new builder.SigninCard(session)
  115. .text('BotFramework Sign-in Card')
  116. .button('Sign-in', 'https://login.microsoftonline.com');
  117. // attach the card to the reply message
  118. var msg = new builder.Message(session).addAttachment(card);
  119. ]]></command>
  120. <command type="ThumbnailCardScorable">
  121. <![CDATA[var card = new builder.ThumbnailCard(session)
  122. .title('BotFramework Thumbnail Card')
  123. .subtitle('Your bots — wherever your users are talking')
  124. .text('Build and connect intelligent bots to interact with your users naturally wherever they are, from text/sms to Skype, Slack, Office 365 mail and other popular services.')
  125. .images([
  126. builder.CardImage.create(session, 'https://sec.ch9.ms/ch9/7ff5/e07cfef0-aa3b-40bb-9baa-7c9ef8ff7ff5/buildreactionbotframework_960.jpg')
  127. ])
  128. .buttons([
  129. builder.CardAction.openUrl(session, 'https://docs.microsoft.com/bot-framework/', 'Get Started')
  130. ]);
  131. // attach the card to the reply message
  132. var msg = new builder.Message(session).addAttachment(card);
  133. ]]></command>
  134. <command type="VideoCardScorable">
  135. <![CDATA[var card = new builder.VideoCard(session)
  136. .title('Big Buck Bunny')
  137. .subtitle('by the Blender Institute')
  138. .text('Big Buck Bunny (code-named Peach) is a short computer-animated comedy film by the Blender Institute, part of the Blender Foundation. Like the foundation\'s previous film Elephants Dream, the film was made using Blender, a free software application for animation made by the same foundation. It was released as an open-source film under Creative Commons License Attribution 3.0.')
  139. .image(builder.CardImage.create(session, 'https://upload.wikimedia.org/wikipedia/commons/thumb/c/c5/Big_buck_bunny_poster_big.jpg/220px-Big_buck_bunny_poster_big.jpg'))
  140. .media([
  141. { url: 'http://download.blender.org/peach/bigbuckbunny_movies/BigBuckBunny_320x180.mp4' }
  142. ])
  143. .buttons([
  144. builder.CardAction.openUrl(session, 'https://peach.blender.org/', 'Learn More')
  145. ]);
  146. // attach the card to the reply message
  147. var msg = new builder.Message(session).addAttachment(card);
  148. ]]></command>
  149. </code>
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...