bots


How to access the filled data when using Formflow Namespace in Skype Bot Framework?


I am using the SimpleSandwichBOT example included with the BOT Framework 3. After the user fills all the options i want to display a message related to the options selected. How can i access the data and present a new message to the user?
namespace Microsoft.Bot.Sample.SimpleSandwichBot
{
[BotAuthentication]
public class MessagesController : ApiController
{
internal static IDialog<SandwichOrder> MakeRootDialog()
{
//return Chain.From(() => FormDialog.FromForm(SandwichOrder.BuildForm));
return Chain.From(() => FormDialog.FromForm(SandwichOrder.BuildForm));
}
/// <summary>
/// POST: api/Messages
/// receive a message from a user and send replies
/// </summary>
/// <param name="activity"></param>
[ResponseType(typeof(void))]
public virtual async Task<HttpResponseMessage> Post([FromBody] Activity activity)
{
if (activity != null)
{
// one of these will have an interface and process it
switch (activity.GetActivityType())
{
case ActivityTypes.Message:
await Conversation.SendAsync(activity, MakeRootDialog);
break;
case ActivityTypes.ConversationUpdate:
case ActivityTypes.ContactRelationUpdate:
case ActivityTypes.Typing:
case ActivityTypes.DeleteUserData:
default:
Trace.TraceError($"Unknown activity type ignored: {activity.GetActivityType()}");
break;
}
}
return new HttpResponseMessage(System.Net.HttpStatusCode.Accepted);
}
}
}
In this code how and where can i access the data?

Related Links

Connecting LUIS dialog to form dialog and mapping builtin fields
ValidationResult throws : “Object reference not set to an instance of an object”. when passing back choices
How to disconnect LUIS of Microsoft Bot Connector selectively?
Skype bot in “In Review” Status
Bot framework documentation qna maker [closed]
How to make telegram bot to remove links?
Testing in Bot Framework returns 401 Unauthorized
Bot Framework .Net Activity reply = activity.CreateReply(
How to access the filled data when using Formflow Namespace in Skype Bot Framework?
Microsoft bot framework getting the users time zone
How to get credentials for the Direct Line API microsoft bot framework?
Telegram bots: How much API keys can I generate?
Weird rendering in “Fetch as Google”
Effective way of training the bot, language processing APIs
What would be the right way to ask the person to enter a city inside a bot?
What is the right way to save/track state inside a Facebook Messenger bot?

Categories

HOME
google-chrome
rust
spring-data
extjs
opencart
kendo-dropdown
long-integer
couchdb
softlayer
activex
add-on
hdfs
adobe
histogram
informatica
yql
google-webmaster-tools
tibco
visualforce
share
ag-grid
gprs
phpmqtt
tfs2010
clickable-image
lda
circleci
jquery-file-upload
stimulsoft
temperature
c#-7.0
android-contacts
playframework-2.0
jaspersoft-studio
bsd
web-analytics
eclipse-emf
exchange-server-2010
software-packaging
tortoisemerge
data-collection
hdmi
infopath2010
windowsiot
vcenter
rspec-rails
sql-execution-plan
cloudera-manager
landscape
best-buy-api
get-event-store
audio-converter
sony-future-lab-n
beeline
iptv
dtd
degrees
business-rules
boost-compute
portal
ndk-build
system.web.optimization
nvda
between
cdo.message
unsigned
gnucash
odp.net-managed
strpos
management-studio-express
srv-record
mixins
flow-js
google-hangouts
microsoft-expression-web
vs-unit-testing-framework
image-rotation
inequality
iplimage
back
ecos
distributed-r
senchatouch-2.4
forio-contour
nosql-aggregation
assetic
particle-swarm
django-settings
smips
mft
pbkdf2
disjoint-union
ckeditor.net
clrprofiler
taskkill
type-safety
gwt-celltable
boost-foreach
canonicalization
jquery-1.4
iphone-sdk-4.3
mysqli-multi-query
3270
data-retrieval
suggestbox
rendering-engine

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App