SlideShare ist ein Scribd-Unternehmen logo
1 von 54
Downloaden Sie, um offline zu lesen
Giuliano Iacobelli, Co-founder / CEO
g@stamplay.com
Easily Build a FAQ Spark Bot
with IBM Watson and Stamplay
Cooking time: 30 mins
Chat UX is more natural, dynamic and avoid any friction
opening new accounts
The ideal user engagement channel
Messaging platforms aim to change the way brands communicate with consumers
More than 900 million monthly active users only on
Facebook Messenger
In 2015 messaging apps have been the fastest growing In the
global Top 10 of most used apps 6 are messaging apps
No need to download yet another app
Ingredients
The bot will be available on Cisco Spark, will use IBM Watson Conversation to handle
natural language and will be implemented using Stamplay.
g@stamplay.com
Getting started
Create an account on Stamplay
Go to https://editor.stamplay.com/signup and create your account for free
Create the project on Stamplay
Once inside, click on the green “+” button in the upper right corner and select Start from Scratch
Create the project on Stamplay
Type a name for your project
Grab your credentials from Watson Conversation
Enter your Bluemix account get the credentials for the Watson Conversation service
Connect IBM Watson Converstion on Stamplay
On Stamplay go to Dashboard > Integrations and search IBM Watson Conversation
Copy your Watson Conversation credentials
Copy Username and password and then click “Connect”
Create your Cisco Spark bot
Go to https://developer.ciscospark.com/apps.html and create a Bot
Fill basic info for your bot
Icon URL http://i.imgur.com/JOuh1h0.png
Save the Access Token
Once the bot is created you’ll see an Access token, copy it and save it somewhere
Connect Cisco Spark Bot on Stamplay
On Stamplay go to Dashboard > Integrations and search Cisco Spark bot
Copy your Spark bot token
Copy the Access Token you got before and then click “Connect”
g@stamplay.com
The Dialogue
Launch the Watson Conversation tool
From your Bluemix account enter the Conversation service and click Launch Tool
Import the dialogue model
Click the icon next to “Create” button and upload the dialogue model
https://app.box.com/s/x4j6fb8036lasosl45blyv9ir9s9gluo
Dialogue overview: Intents
A set of intents are used to return answers to known questions
Dialogue overview: Intents
#when_it_burns intent handles questions like “what night does the man burn?”
Dialogue overview: Intents
#when_it_is intent handles questions like “what are the dates for the event?”
Dialogue overview: Intents
#where_is_it intent handles questions like “where is the festival located”
Dialogue overview: Intents
#what_is_it intent handles questions like “what is the burning man?”
The Dialogue model
An Start node of the dialogue tree handles the initial conversation
The Dialogue model
Create a root node for each intent that can answer a question (e.g #what_is_it)
The Dialogue model
Create a root node for each intent that can answer a question (e.g #where_is_it)
Connect to Spark
Inizializing the integration Flow
Go to Flows and start by selecting the Cisco Spark bot app from the list
Configure the event that starts the flow
We’ll start this flow everytime the bot receives a New Direct Message
Select the event that starts the flow
Click on continue when you get to the Account tab, we’ve connected this before
Adding a steps to your flow
After each step of your workflow you can define the following action by moving your
mouse hover the + icon
Add a Contidion step to filter bot messages
Spark triggers this event also when is the bot itself writing so we filter out its messages
with a condition step that checks for the sender email address
Checking if the message is sent by the bot
Click on the first dropdown on the left and select personEmail, this will be the property we
use to recognize if is a bot writing (something@sparkbot.io)
If the condition is met stop the flow
To run a branch of our flow only when the condition is met let’s add a step that will be
executed IF TRUE.
Adding a Stop step
After clicking IF TRUE, select STOP to add a step that will terminate flow execution.
Saving the Stop step
Save the new step without any additional configuration and you’re good to go
Retrieve message content
The New Message trigger of Spark only pass an ID of the message received without
content. To read the actual message we add the Get Message action.
Passing data from step to step
To use a Message Id from a previous step. Click on the “{}” button to see the steps
available to fetch data from and select New Direct Message.
Passing data from step to step
Click on the id attribute of the message JSON representation sent by Spark
Passing data from step to step
Stamplay will add a parameter inside the input field and will automatically replace it with
the actual value of the id of the New Direct Message that will trigger this flow
Passing the message to Watson
Now that we have the message that has been type by the user we can pass it to Watson,
add a new Action and select IBM Watson Conversation
Passing the message to Watson
Select the only action available, Conversation
Passing the message to Watson
Fill the parameters by passing the Workspace ID and the text. Workspace Id is available on
the Watson Conversation tool home, text will be passed by the previous step.
Getting the Workspace Id
On your account of the Watson Conversation tool you can find the workspace Id
by entering the Workspace details
Passing the message to Watson
Select the text attribute from the JSON representation passed by the Get Message action
Passing the message to Watson
Stamplay will add a parameter inside the input field and will automatically replace it with
the actual value of the text of the Get Message action
Returning the answer to the User
The last step of our flow is to return the answer computed by IBM Watson Conversation.
Add one more action and select Cisco Spark Bot Post Message action
Returning the answer to the User
The Room dropdown shows us all the room where the bot is currently available. Click on
Type a custom value to be able to pass here a dynamic value
Returning the answer to the User
Once che cursor is blinking, click on the “{}” button to grab a valid Room Id from the New
Direct Message step of this flow
Returning the answer to the User
Select the roomId attribute from the JSON representation
Returning the answer to the User
Text field will be filled by passing the result returned by IBM Watson Conversation, once
again click the “{}” button to open the dropdown with the previous step of the flow
Returning the answer to the User
After selecting IBM Watson Conversation select the text attribute nested under output
You’re all set
The final flow should look like this, make sure it’s on by checking the switch
Giuliano Iacobelli
g@stamplay.com
+1 (415) 481 8606
Got Questions?

Weitere ähnliche Inhalte

Was ist angesagt?

20 Tips to Improve Productivity with Microsoft Teams
20 Tips to Improve Productivity with Microsoft Teams20 Tips to Improve Productivity with Microsoft Teams
20 Tips to Improve Productivity with Microsoft TeamsChristian Buckley
 
Microsoft 365 Productivity Tips "December Dust-Up"
Microsoft 365 Productivity Tips "December Dust-Up"Microsoft 365 Productivity Tips "December Dust-Up"
Microsoft 365 Productivity Tips "December Dust-Up"Christian Buckley
 
Office 365 Productivity Tips "October Discord"
Office 365 Productivity Tips "October Discord"Office 365 Productivity Tips "October Discord"
Office 365 Productivity Tips "October Discord"Christian Buckley
 
Office 365 Productivity Tips November 2017 November Smack-Down
Office 365 Productivity Tips November 2017 November Smack-DownOffice 365 Productivity Tips November 2017 November Smack-Down
Office 365 Productivity Tips November 2017 November Smack-DownThomas Duff
 
Office 365 Productivity Tips -- November Smack-Down
Office 365 Productivity Tips -- November Smack-DownOffice 365 Productivity Tips -- November Smack-Down
Office 365 Productivity Tips -- November Smack-DownChristian Buckley
 
Office 365 Productivity Tips "April Afflux"
Office 365 Productivity Tips "April Afflux"Office 365 Productivity Tips "April Afflux"
Office 365 Productivity Tips "April Afflux"Christian Buckley
 

Was ist angesagt? (7)

20 Tips to Improve Productivity with Microsoft Teams
20 Tips to Improve Productivity with Microsoft Teams20 Tips to Improve Productivity with Microsoft Teams
20 Tips to Improve Productivity with Microsoft Teams
 
Microsoft 365 Productivity Tips "December Dust-Up"
Microsoft 365 Productivity Tips "December Dust-Up"Microsoft 365 Productivity Tips "December Dust-Up"
Microsoft 365 Productivity Tips "December Dust-Up"
 
Office 365 Productivity Tips "October Discord"
Office 365 Productivity Tips "October Discord"Office 365 Productivity Tips "October Discord"
Office 365 Productivity Tips "October Discord"
 
Jmp108
Jmp108Jmp108
Jmp108
 
Office 365 Productivity Tips November 2017 November Smack-Down
Office 365 Productivity Tips November 2017 November Smack-DownOffice 365 Productivity Tips November 2017 November Smack-Down
Office 365 Productivity Tips November 2017 November Smack-Down
 
Office 365 Productivity Tips -- November Smack-Down
Office 365 Productivity Tips -- November Smack-DownOffice 365 Productivity Tips -- November Smack-Down
Office 365 Productivity Tips -- November Smack-Down
 
Office 365 Productivity Tips "April Afflux"
Office 365 Productivity Tips "April Afflux"Office 365 Productivity Tips "April Afflux"
Office 365 Productivity Tips "April Afflux"
 

Ähnlich wie Easily Build a FAQ Spark Bot with IBM Watson

Create yourfirstandroidapppdf
Create yourfirstandroidapppdfCreate yourfirstandroidapppdf
Create yourfirstandroidapppdfmurad3003
 
Office 365 Productivity Tips "May Mediation"
Office 365 Productivity Tips "May Mediation"Office 365 Productivity Tips "May Mediation"
Office 365 Productivity Tips "May Mediation"Christian Buckley
 
M365 Productivity Tips "Melee in Minneapolis"
M365 Productivity Tips "Melee in Minneapolis"M365 Productivity Tips "Melee in Minneapolis"
M365 Productivity Tips "Melee in Minneapolis"Christian Buckley
 
How to use of Daily Basic Apps in your Gadgets.
How to use of Daily Basic Apps in your Gadgets.How to use of Daily Basic Apps in your Gadgets.
How to use of Daily Basic Apps in your Gadgets.Mahendra25
 
Office 365 Productivity Tips "New Year Brouhaha"
Office 365 Productivity Tips "New Year Brouhaha"Office 365 Productivity Tips "New Year Brouhaha"
Office 365 Productivity Tips "New Year Brouhaha"Christian Buckley
 
MAD mobile application development you can learn from here , we perform all c...
MAD mobile application development you can learn from here , we perform all c...MAD mobile application development you can learn from here , we perform all c...
MAD mobile application development you can learn from here , we perform all c...harshalpatil183931
 
Office 365 Productivity Tips "August Altercation"
Office 365 Productivity Tips "August Altercation"Office 365 Productivity Tips "August Altercation"
Office 365 Productivity Tips "August Altercation"Christian Buckley
 
20 Microsoft 365 Productivity Tips - Minnesota SharePoint User Group
20 Microsoft 365 Productivity Tips -  Minnesota SharePoint User Group20 Microsoft 365 Productivity Tips -  Minnesota SharePoint User Group
20 Microsoft 365 Productivity Tips - Minnesota SharePoint User GroupThomas Duff
 
20 Microsoft 365 Productivity Tips
20 Microsoft 365 Productivity Tips20 Microsoft 365 Productivity Tips
20 Microsoft 365 Productivity TipsChristian Buckley
 
20 Microsoft 365 Productivity Tips - Minnesota M365 User Group - 2021/06/14
20 Microsoft 365 Productivity Tips - Minnesota M365 User Group - 2021/06/1420 Microsoft 365 Productivity Tips - Minnesota M365 User Group - 2021/06/14
20 Microsoft 365 Productivity Tips - Minnesota M365 User Group - 2021/06/14Thomas Duff
 
Stay Anonymous app report
Stay Anonymous app reportStay Anonymous app report
Stay Anonymous app reportZx MYS
 
Office 365 Productivity Tips "Summer Scuffle"
Office 365 Productivity Tips "Summer Scuffle"Office 365 Productivity Tips "Summer Scuffle"
Office 365 Productivity Tips "Summer Scuffle"Christian Buckley
 
Enhance Business Communications using Skype for Business
Enhance Business Communications using Skype for BusinessEnhance Business Communications using Skype for Business
Enhance Business Communications using Skype for BusinessTuan Yang
 
[2019 Serverless Summit] Building Serverless Slack Chatbot on IBM Cloud Func...
 [2019 Serverless Summit] Building Serverless Slack Chatbot on IBM Cloud Func... [2019 Serverless Summit] Building Serverless Slack Chatbot on IBM Cloud Func...
[2019 Serverless Summit] Building Serverless Slack Chatbot on IBM Cloud Func...Tomomi Imura
 
Creating and Deploying a Bot Service Using the Bot Framework and Visual Studio
Creating and Deploying a Bot Service Using the Bot Framework and  Visual StudioCreating and Deploying a Bot Service Using the Bot Framework and  Visual Studio
Creating and Deploying a Bot Service Using the Bot Framework and Visual StudioMurray Fife
 
Cognitive Services Labs in action - Project Conversation Learner
Cognitive Services Labs in action - Project Conversation LearnerCognitive Services Labs in action - Project Conversation Learner
Cognitive Services Labs in action - Project Conversation LearnerMicrosoft Tech Community
 
20 Office 365 Productivity Tips that you've probably never used (but should)
20 Office 365 Productivity Tips that you've probably never used (but should)20 Office 365 Productivity Tips that you've probably never used (but should)
20 Office 365 Productivity Tips that you've probably never used (but should)Christian Buckley
 

Ähnlich wie Easily Build a FAQ Spark Bot with IBM Watson (20)

Create yourfirstandroidapppdf
Create yourfirstandroidapppdfCreate yourfirstandroidapppdf
Create yourfirstandroidapppdf
 
Office 365 Productivity Tips "May Mediation"
Office 365 Productivity Tips "May Mediation"Office 365 Productivity Tips "May Mediation"
Office 365 Productivity Tips "May Mediation"
 
M365 Productivity Tips "Melee in Minneapolis"
M365 Productivity Tips "Melee in Minneapolis"M365 Productivity Tips "Melee in Minneapolis"
M365 Productivity Tips "Melee in Minneapolis"
 
How to use of Daily Basic Apps in your Gadgets.
How to use of Daily Basic Apps in your Gadgets.How to use of Daily Basic Apps in your Gadgets.
How to use of Daily Basic Apps in your Gadgets.
 
Office 365 Productivity Tips "New Year Brouhaha"
Office 365 Productivity Tips "New Year Brouhaha"Office 365 Productivity Tips "New Year Brouhaha"
Office 365 Productivity Tips "New Year Brouhaha"
 
MAD mobile application development you can learn from here , we perform all c...
MAD mobile application development you can learn from here , we perform all c...MAD mobile application development you can learn from here , we perform all c...
MAD mobile application development you can learn from here , we perform all c...
 
Office 365 Productivity Tips "August Altercation"
Office 365 Productivity Tips "August Altercation"Office 365 Productivity Tips "August Altercation"
Office 365 Productivity Tips "August Altercation"
 
20 Microsoft 365 Productivity Tips - Minnesota SharePoint User Group
20 Microsoft 365 Productivity Tips -  Minnesota SharePoint User Group20 Microsoft 365 Productivity Tips -  Minnesota SharePoint User Group
20 Microsoft 365 Productivity Tips - Minnesota SharePoint User Group
 
20 Microsoft 365 Productivity Tips
20 Microsoft 365 Productivity Tips20 Microsoft 365 Productivity Tips
20 Microsoft 365 Productivity Tips
 
20 Microsoft 365 Productivity Tips - Minnesota M365 User Group - 2021/06/14
20 Microsoft 365 Productivity Tips - Minnesota M365 User Group - 2021/06/1420 Microsoft 365 Productivity Tips - Minnesota M365 User Group - 2021/06/14
20 Microsoft 365 Productivity Tips - Minnesota M365 User Group - 2021/06/14
 
Stay Anonymous app report
Stay Anonymous app reportStay Anonymous app report
Stay Anonymous app report
 
Office 365 Productivity Tips "Summer Scuffle"
Office 365 Productivity Tips "Summer Scuffle"Office 365 Productivity Tips "Summer Scuffle"
Office 365 Productivity Tips "Summer Scuffle"
 
Enhance Business Communications using Skype for Business
Enhance Business Communications using Skype for BusinessEnhance Business Communications using Skype for Business
Enhance Business Communications using Skype for Business
 
How to use GetResponse
How to use GetResponseHow to use GetResponse
How to use GetResponse
 
[2019 Serverless Summit] Building Serverless Slack Chatbot on IBM Cloud Func...
 [2019 Serverless Summit] Building Serverless Slack Chatbot on IBM Cloud Func... [2019 Serverless Summit] Building Serverless Slack Chatbot on IBM Cloud Func...
[2019 Serverless Summit] Building Serverless Slack Chatbot on IBM Cloud Func...
 
Creating and Deploying a Bot Service Using the Bot Framework and Visual Studio
Creating and Deploying a Bot Service Using the Bot Framework and  Visual StudioCreating and Deploying a Bot Service Using the Bot Framework and  Visual Studio
Creating and Deploying a Bot Service Using the Bot Framework and Visual Studio
 
Cognitive Services Labs in action - Project Conversation Learner
Cognitive Services Labs in action - Project Conversation LearnerCognitive Services Labs in action - Project Conversation Learner
Cognitive Services Labs in action - Project Conversation Learner
 
Creating a Hello World Telegram ChatBot by CY
Creating a Hello World Telegram ChatBot by CYCreating a Hello World Telegram ChatBot by CY
Creating a Hello World Telegram ChatBot by CY
 
Signatures
SignaturesSignatures
Signatures
 
20 Office 365 Productivity Tips that you've probably never used (but should)
20 Office 365 Productivity Tips that you've probably never used (but should)20 Office 365 Productivity Tips that you've probably never used (but should)
20 Office 365 Productivity Tips that you've probably never used (but should)
 

Mehr von Giuliano Iacobelli

APIs and Process automation at APIDays Global 2016
APIs and Process automation at APIDays Global 2016APIs and Process automation at APIDays Global 2016
APIs and Process automation at APIDays Global 2016Giuliano Iacobelli
 
Grow as you go: lesson learned as a tech startupper
Grow as you go: lesson learned as a tech startupperGrow as you go: lesson learned as a tech startupper
Grow as you go: lesson learned as a tech startupperGiuliano Iacobelli
 
Stamplay: Scale your business with Microsoft Bizspark and Windows Azure
Stamplay: Scale your business with Microsoft Bizspark and Windows AzureStamplay: Scale your business with Microsoft Bizspark and Windows Azure
Stamplay: Scale your business with Microsoft Bizspark and Windows AzureGiuliano Iacobelli
 
Social Media: The Web Wide World
Social Media: The Web Wide WorldSocial Media: The Web Wide World
Social Media: The Web Wide WorldGiuliano Iacobelli
 
Mobile Zen - Improve your life through your device
Mobile Zen - Improve your life through your deviceMobile Zen - Improve your life through your device
Mobile Zen - Improve your life through your deviceGiuliano Iacobelli
 
Get things done with Yii - quickly build webapplications
Get things done with Yii - quickly build webapplicationsGet things done with Yii - quickly build webapplications
Get things done with Yii - quickly build webapplicationsGiuliano Iacobelli
 
Social is the new normal: Thoughts, tips and insights in a strongly connected...
Social is the new normal: Thoughts, tips and insights in a strongly connected...Social is the new normal: Thoughts, tips and insights in a strongly connected...
Social is the new normal: Thoughts, tips and insights in a strongly connected...Giuliano Iacobelli
 
Poke the Web and see what happen
Poke the Web and see what happenPoke the Web and see what happen
Poke the Web and see what happenGiuliano Iacobelli
 

Mehr von Giuliano Iacobelli (14)

APIs and Process automation at APIDays Global 2016
APIs and Process automation at APIDays Global 2016APIs and Process automation at APIDays Global 2016
APIs and Process automation at APIDays Global 2016
 
The Chatbot Revolution
The Chatbot RevolutionThe Chatbot Revolution
The Chatbot Revolution
 
La rivoluzione dei chatbot
La rivoluzione dei chatbotLa rivoluzione dei chatbot
La rivoluzione dei chatbot
 
APIs as building blocks
APIs as building blocksAPIs as building blocks
APIs as building blocks
 
Grow as you go: lesson learned as a tech startupper
Grow as you go: lesson learned as a tech startupperGrow as you go: lesson learned as a tech startupper
Grow as you go: lesson learned as a tech startupper
 
Mobile Trends 2013
Mobile Trends 2013Mobile Trends 2013
Mobile Trends 2013
 
Stamplay: Scale your business with Microsoft Bizspark and Windows Azure
Stamplay: Scale your business with Microsoft Bizspark and Windows AzureStamplay: Scale your business with Microsoft Bizspark and Windows Azure
Stamplay: Scale your business with Microsoft Bizspark and Windows Azure
 
Social Media: The Web Wide World
Social Media: The Web Wide WorldSocial Media: The Web Wide World
Social Media: The Web Wide World
 
From an idea to a Startup
From an idea to a StartupFrom an idea to a Startup
From an idea to a Startup
 
Mobile Zen - Improve your life through your device
Mobile Zen - Improve your life through your deviceMobile Zen - Improve your life through your device
Mobile Zen - Improve your life through your device
 
Get things done with Yii - quickly build webapplications
Get things done with Yii - quickly build webapplicationsGet things done with Yii - quickly build webapplications
Get things done with Yii - quickly build webapplications
 
Social is the new normal: Thoughts, tips and insights in a strongly connected...
Social is the new normal: Thoughts, tips and insights in a strongly connected...Social is the new normal: Thoughts, tips and insights in a strongly connected...
Social is the new normal: Thoughts, tips and insights in a strongly connected...
 
Poke the Web and see what happen
Poke the Web and see what happenPoke the Web and see what happen
Poke the Web and see what happen
 
Un universo di App
Un universo di AppUn universo di App
Un universo di App
 

Kürzlich hochgeladen

A Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersA Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersNicole Novielli
 
SALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICESSALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICESmohitsingh558521
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Manik S Magar
 
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024BookNet Canada
 
Moving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfMoving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfLoriGlavin3
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024Lorenzo Miniero
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 3652toLead Limited
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .Alan Dix
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxLoriGlavin3
 
Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...Rick Flair
 
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxLoriGlavin3
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebUiPathCommunity
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr BaganFwdays
 
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxThe Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxLoriGlavin3
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxhariprasad279825
 
Sample pptx for embedding into website for demo
Sample pptx for embedding into website for demoSample pptx for embedding into website for demo
Sample pptx for embedding into website for demoHarshalMandlekar2
 
What is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfWhat is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfMounikaPolabathina
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024Lonnie McRorey
 
What is Artificial Intelligence?????????
What is Artificial Intelligence?????????What is Artificial Intelligence?????????
What is Artificial Intelligence?????????blackmambaettijean
 
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxA Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxLoriGlavin3
 

Kürzlich hochgeladen (20)

A Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersA Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software Developers
 
SALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICESSALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICES
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!
 
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
 
Moving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfMoving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdf
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
 
Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...
 
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio Web
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan
 
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxThe Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptx
 
Sample pptx for embedding into website for demo
Sample pptx for embedding into website for demoSample pptx for embedding into website for demo
Sample pptx for embedding into website for demo
 
What is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfWhat is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdf
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024
 
What is Artificial Intelligence?????????
What is Artificial Intelligence?????????What is Artificial Intelligence?????????
What is Artificial Intelligence?????????
 
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxA Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
 

Easily Build a FAQ Spark Bot with IBM Watson

  • 1. Giuliano Iacobelli, Co-founder / CEO g@stamplay.com Easily Build a FAQ Spark Bot with IBM Watson and Stamplay Cooking time: 30 mins
  • 2. Chat UX is more natural, dynamic and avoid any friction opening new accounts The ideal user engagement channel Messaging platforms aim to change the way brands communicate with consumers More than 900 million monthly active users only on Facebook Messenger In 2015 messaging apps have been the fastest growing In the global Top 10 of most used apps 6 are messaging apps No need to download yet another app
  • 3. Ingredients The bot will be available on Cisco Spark, will use IBM Watson Conversation to handle natural language and will be implemented using Stamplay.
  • 5. Create an account on Stamplay Go to https://editor.stamplay.com/signup and create your account for free
  • 6. Create the project on Stamplay Once inside, click on the green “+” button in the upper right corner and select Start from Scratch
  • 7. Create the project on Stamplay Type a name for your project
  • 8. Grab your credentials from Watson Conversation Enter your Bluemix account get the credentials for the Watson Conversation service
  • 9. Connect IBM Watson Converstion on Stamplay On Stamplay go to Dashboard > Integrations and search IBM Watson Conversation
  • 10. Copy your Watson Conversation credentials Copy Username and password and then click “Connect”
  • 11. Create your Cisco Spark bot Go to https://developer.ciscospark.com/apps.html and create a Bot
  • 12. Fill basic info for your bot Icon URL http://i.imgur.com/JOuh1h0.png
  • 13. Save the Access Token Once the bot is created you’ll see an Access token, copy it and save it somewhere
  • 14. Connect Cisco Spark Bot on Stamplay On Stamplay go to Dashboard > Integrations and search Cisco Spark bot
  • 15. Copy your Spark bot token Copy the Access Token you got before and then click “Connect”
  • 17. Launch the Watson Conversation tool From your Bluemix account enter the Conversation service and click Launch Tool
  • 18. Import the dialogue model Click the icon next to “Create” button and upload the dialogue model https://app.box.com/s/x4j6fb8036lasosl45blyv9ir9s9gluo
  • 19. Dialogue overview: Intents A set of intents are used to return answers to known questions
  • 20. Dialogue overview: Intents #when_it_burns intent handles questions like “what night does the man burn?”
  • 21. Dialogue overview: Intents #when_it_is intent handles questions like “what are the dates for the event?”
  • 22. Dialogue overview: Intents #where_is_it intent handles questions like “where is the festival located”
  • 23. Dialogue overview: Intents #what_is_it intent handles questions like “what is the burning man?”
  • 24. The Dialogue model An Start node of the dialogue tree handles the initial conversation
  • 25. The Dialogue model Create a root node for each intent that can answer a question (e.g #what_is_it)
  • 26. The Dialogue model Create a root node for each intent that can answer a question (e.g #where_is_it)
  • 28. Inizializing the integration Flow Go to Flows and start by selecting the Cisco Spark bot app from the list
  • 29. Configure the event that starts the flow We’ll start this flow everytime the bot receives a New Direct Message
  • 30. Select the event that starts the flow Click on continue when you get to the Account tab, we’ve connected this before
  • 31. Adding a steps to your flow After each step of your workflow you can define the following action by moving your mouse hover the + icon
  • 32. Add a Contidion step to filter bot messages Spark triggers this event also when is the bot itself writing so we filter out its messages with a condition step that checks for the sender email address
  • 33. Checking if the message is sent by the bot Click on the first dropdown on the left and select personEmail, this will be the property we use to recognize if is a bot writing (something@sparkbot.io)
  • 34. If the condition is met stop the flow To run a branch of our flow only when the condition is met let’s add a step that will be executed IF TRUE.
  • 35. Adding a Stop step After clicking IF TRUE, select STOP to add a step that will terminate flow execution.
  • 36. Saving the Stop step Save the new step without any additional configuration and you’re good to go
  • 37. Retrieve message content The New Message trigger of Spark only pass an ID of the message received without content. To read the actual message we add the Get Message action.
  • 38. Passing data from step to step To use a Message Id from a previous step. Click on the “{}” button to see the steps available to fetch data from and select New Direct Message.
  • 39. Passing data from step to step Click on the id attribute of the message JSON representation sent by Spark
  • 40. Passing data from step to step Stamplay will add a parameter inside the input field and will automatically replace it with the actual value of the id of the New Direct Message that will trigger this flow
  • 41. Passing the message to Watson Now that we have the message that has been type by the user we can pass it to Watson, add a new Action and select IBM Watson Conversation
  • 42. Passing the message to Watson Select the only action available, Conversation
  • 43. Passing the message to Watson Fill the parameters by passing the Workspace ID and the text. Workspace Id is available on the Watson Conversation tool home, text will be passed by the previous step.
  • 44. Getting the Workspace Id On your account of the Watson Conversation tool you can find the workspace Id by entering the Workspace details
  • 45. Passing the message to Watson Select the text attribute from the JSON representation passed by the Get Message action
  • 46. Passing the message to Watson Stamplay will add a parameter inside the input field and will automatically replace it with the actual value of the text of the Get Message action
  • 47. Returning the answer to the User The last step of our flow is to return the answer computed by IBM Watson Conversation. Add one more action and select Cisco Spark Bot Post Message action
  • 48. Returning the answer to the User The Room dropdown shows us all the room where the bot is currently available. Click on Type a custom value to be able to pass here a dynamic value
  • 49. Returning the answer to the User Once che cursor is blinking, click on the “{}” button to grab a valid Room Id from the New Direct Message step of this flow
  • 50. Returning the answer to the User Select the roomId attribute from the JSON representation
  • 51. Returning the answer to the User Text field will be filled by passing the result returned by IBM Watson Conversation, once again click the “{}” button to open the dropdown with the previous step of the flow
  • 52. Returning the answer to the User After selecting IBM Watson Conversation select the text attribute nested under output
  • 53. You’re all set The final flow should look like this, make sure it’s on by checking the switch