ºÝºÝߣ

ºÝºÝߣShare a Scribd company logo
Chatbot ?? ??? ?? ?? ?
IBM Watson Assistant ??
Chatbot ???
2019.11.18
???: ???
1
??
? Chatbot ? ?? ? ?? ??
? Chatbot ? ?? ??
? Chatbot ? ?? ? ??
? Chatbot ?? ????
? Chatbot ?? ? ??? ?? ?? (Hands-On)
2
Chatbot ? ?? ?
?? ??
3
Chatbot (??) ???
? ???? ??? ??? ???, Chatbot
? ??? ? ???? ????.
? ¡°A computer program designed to
simulate conversation with human users,
especially over the Internet.¡±
? ? ? ????? ????, Chatbot ? ?
???, ?????? ?? ???? ??
? (????, ????, ???? ?)? ?
?? ?? ???? ??? ???? ??
??? ???? ???? ????? ??
?? ? ??? ??? ? ??? ????
????? ??? ????.
? ??? Chatbot? ????? ??? ??
???? ?????? ??? ? ??.
4
Chatbot ? ??
5
??: https://www.altexsoft.com/blog/business/a-comprehensive-guide-to-chatbots-best-practices-for-building-conversational-interfaces/
ELIZA - ??? ??? ??? ?????
MIT ?? ???? Joseph Weizenbaum ?
?? ??? ??? ??????, ?????
?? ??? ???? ? ?? ?? ???? ?
?? ???? ?? ?? ??? ? ?? ??
??? ??
Watson - ?? ??? ?? ??? ????? ???
Thomas J. Watson Research Center ? ?? ??????
? ? ?? ???, ?????? ????? ??? ??? ?
???? ? ? ?? ???? ???? ????, ?????
2006?? Principal Investigator? IBM? ???? David
Ferrucci ? ??? DeepQA project? ???? ???
Siri - ??? ??? ??? ????? ???? ???
? iPhone 4s ? ??? ???? ?? ?? ????
? ?? ? ??? ??????? ? ??? ?? ??
?? ??? ?????????(DARPA) ? ????
?? ??? CALO project ? ??????? ???
??? ??? Siri? 2010?? ??? ??? ????
? ??? ?????? ????? ???, ???? ?
?? ???? ???? ??
Chatbot ? ? ?????
? Chatbot ? ???? ?????? ??? ?? ?? ?
??? ????? ??? ???? ?? ?? ??? ?
?? ???? ??? ?????? ????? ???
? ???? ??????? ????.
? ?? ??? Chatbot ? ??? ??? ??? ????
? ???? ?? ??? ????? ?? ??? ??
?? ? ?? ??? ??? ?? ??? ???? ??
? ?? ?? ???? ????? ??? ?? ???
??.
6
??? ? Chatbot ?
??????
? 2017? 11?? ?? ?4? ??? ?? ?? ?????
? ??? ?? ???? ???? Chatbot ? ???
? ?????? ?? ? ?? ??? ???? ??.
? ????? ???, ???? Chatbot? ?????
?????? ? ?? ??? ??? ??.
? ??? ?? - Chatbot? ??? ??? ????? ?
?? ? ??? ????.
? ?????? ?? - Chatbot? ????? ??? ?
? ???? ???? ?? ??? ???? ? ?? ?
? ? ???? ?? ????.
? ?? ? ?? ?? - Chatbot? ???? ???? ?
? ? ??? ???? ??? ??? ?? ???? ?
? ??? ? ?? ?? ??? ??? ? ??? ???
?.
? ??? ?? - Chatbot ?? ?? ??? ???? ??
??. ?, ???? Chatbot? ??? ?? ??? ??
?? ???? ??? ?? ????? ????.
7
Chatbot ? ?? ??
8
¨CChristina Milian
¡°I think chatbots are the future of engagement
between a fan and a brand or celebrity.¡±
9
Chatbot? ???
?????? ??????
?? ??? ??
?? ???? ???
???? ????
??? ??? ??
??? ?? ???
10
1. ??? ??? ??? ??? ??
2. FAQ ????? ?? ??? ?? ??
??? Chatbot?? ??? ?? ?? ??? ????
Chatbot? ???? ????? ???? ??? ??? ?
??? ????? ???? ?? ?? ?? ??
Chatbot? ?? ?? ? ??? ???? ?? ??? ??
? ???? ???? ???? ??? ????? ???
Chatbot ? ??? ??? ?? ??? ?? ??? ???
?.
???? ????? ???? ???? ??? 90% ?
?? ??? ?? ?? ??? ???? ??, Chatbot? ?
?? ??? ???? ??? 100% ??? ??? ? ??
???? ??? ? ???? ????.
??? ??? ?? ?, ??, ?? ??? ?? ??? ??
? ?? ??? ?? ??? Chatbot? ?? ??? ???
?? ???? ???? ????? ?? ? ??.
Chatbot ? ?? ? ??
11
?? ??? Chatbot? ????
? Chatbot ? ??? ?? ?? ??? ?? ????? ??? ??? ??? ?? ????? ?? ?
??? ??? ??? ? ?? ?? (Lead Generation)?? ????? ??? ??? ??? ? ?
?? ??? Chatbot? ?? ??? ?? ???? ??. ?? ???? ????? ?????
Chatbot? ?? 5?? ??? ??? ? ??.
? FAQ assistants - ??? ??? ?? ?? ?? ??? ??? ?? ???? ????? ??
? Navigation Bots - ??? ??? ??? ?? ???? ?? ?? ???? ?? ????? ???
? Lead generation and retention bots - ?? ???? ???? ? ??? ???? ? ??? ??
?? ???? ?? ??? ??? ???? ???? ?? ??? ??
? Transaction bots - ?? ?? Chatbot? ?? ?? ?????? ??? ?? ??? ???? ??
?? ?? ???? ??? ? ??? ???? ??
? Internal assistant chatbots - ?? ?? ???? ???? ???? ?? ?? ? ???? ???
? ??? ??? ???? ?? ?? Chatbot? ??? ????? ?? (?: ?? ? ??? ???
? ???? ?? ?? ?? ?? ?? ??)
12
?? ?? - ???
? Hotel Search Chatbot Demo - GoHero.AI
? ??: https://www.youtube.com/watch?v=7LWY8rwpTnI
13
?? ?? - ??? ??
? Table booking chatbot - ADEO WEB
? ??: https://www.youtube.com/watch?v=Y84M_7AiJto
14
?? ?? - ???? ??
? Healthcare Chatbot Demo - Avaya Messaging Automation
? ??: https://www.youtube.com/watch?v=nvOJQ4JttP0
15
?? ?? - ?? ? ?? ??
? Retailer & Brand Chatbot offers to consumers powered by AI - TrendBrew
? ??: https://www.youtube.com/watch?v=74JEJlpX9w4
16
?? ?? - Google Duplex
? Google Duplex A.I. - How Does it Work? - ColdFusion
? ??: https://www.youtube.com/watch?v=IuIpgArEZig
17
Chatbot ?? ????
18
Chatbot ?? ????
?? ??
??? ???
??? ??
?? ?? ?? ??, ??? ? ??
Chatbot? ??? ??
?? ?? ?? ?? ? ?
? ??
Chatbot? ????
Channel ? ??
(?: ?? ????,
Facebook,
Telegram)
Chatbot? ?? ???
Bot Engine? ?? ??? ?
?? ??? ??? Builder
Platform? ??
??? ??? ??
Chatbot? ?? ???
? ?? ? ??? ?? ??
???? ?? ? ?? ??
? ? ??? ??? ??
19
Chatbot ??? ?? ??
20
??: https://wiprodigital.com/2019/07/11/conversational-ai-and-chatbots-the-new-digital-frontier/
Channels Bot Engine Enterprise System
Channels
21
Bot Engine
22
??: https://chatbotslife.com/ultimate-guide-to-leveraging-nlp-machine-learning-for-you-chatbot-531ff2dd870c
Enterprise System
23
??: https://www.sileron.com/en/sap-s4hana-cloud-erp/
Chatbot ?? ?? ?? ??
24
??: https://www.cleveroad.com/blog/how-to-create-a-chatbot-for-business--step-by-step-guide-with-an-estimation
Chatbot ?? ?? ??
25
??: https://chatbotslife.com/ultimate-guide-to-leveraging-nlp-machine-learning-for-you-chatbot-531ff2dd870c
Chatbot ?? ?? ??
? Intents: to convey purpose or goal
? Entities: make logical decisions based on user input
? Dialogs: design a conversation
? Slots: collect important information to fulfill an
intent
? Digressions and Handlers: handle unexpected
conversations.
26
Chatbot ?? ? ??? ?
? ?? (Hands-On)
27
?? ?? ????
IBM Cloud ? ???
IBM Watson Assistant ???
? ????? ??
IBM Cloud Functions ? Action
?? ? ??
IBM Watson Assistant? ???
??? Action? ??
IBM Node-Red??
Telegram? ??
Telegram ?? Chatbot ??
??
28
?? ?? GitHub Repository
29
https://github.com/KyoYoon/ibm_watson_chatbot_lecture_basic
??? ???? ??..
? Chrome ???? ??
? Gmail ?? ?? ? Google Colab ??
? Telegram ???? ? ?? ? Bot ??
? Open API ??
? IBM ?? ??
? IBM Cloud ?? ? ???
30
Chrome Browser ??
31
Gmail ?? ??
32
Google Colab ?? (1)
33
Google Colab ?? (2)
34
Telegram ???? ? ??
35
Telegram ?? ? ???
36
Telegram Bot ??? (1)
1.
@BotFather
?? ? ??
2. ???? ?
BotFather
??
37
Telegram Bot ??? (2)
3. /newbot ?
?? ?? ?
??
38
Telegram Bot ??? (3)
4. name ?
watson_chat_<your_name>_bot
?? ?? ? ??
5. username ?
watson_chat_<your_name>_b
ot ?? ?? ? ??
6. Token ? ???? ?
? ?? (?? ??!)
39
Telegram Bot ??? (4)
7.
@watson_chat_<your_name>_bot
?? ? ??? ? ??? ??? Bot
??
40
?? ???? ?? API DATA
??? ???? ???? API ?? (1)
41
?? ???? ?? API DATA
??? ???? ???? API ?? (2)
42
?? ???? ?? API DATA
??? ???? ???? API ?? (3)
43
?? ???? ?? API DATA
??? ???? ???? API ?? (4)
44
?? ???? ?? API DATA
??? ???? ???? API ?? (5)
45
?? ???? ?? API DATA
??? ???? ???? API ?? (6)
??? ?? ?????? ???
?? ??? ??? ???? ??
?? ? ?? ?? ???? ??
? ??? ???? ?? ? ??
? ???? ?
46
?? ???? ?? API DATA
??? ???? ???? API ?? (7)
47
IBM ?? ?? (1)
48
https://www.ibm.com/kr-ko
IBM ?? ?? (2)
49
IBM ?? ?? (3)
50
IBM ?? ?? (4)
51
IBM ?? ?? (5)
52
IBM ?? ?? (6)
53
IBM ?? ?? (7)
54
IBM Cloud ??? ? ???
1.?????? ??? ????? ?? ?? ?
?? ?? ?? IBM Cloud ?? ? ????
???? IBM?? ???? ????? ??
?? ????? ???? ?? ?? ?
-> ??? ?? ? ??? ??? ?? ????
55
https://cloud.ibm.com/
IBM Cloud ??? ? ???
56
https://cloud.ibm.com/
IBM Cloud ??? ? ???
57
IBM Cloud ??? ? ???
58
IBM Cloud ??? ? ???
59
IBM Cloud ??? ? ???
60
IBM Cloud ??? ? ???
61
IBM Cloud ??? ? ???
62
IBM Cloud ??? ?? (??)
63
IBM Cloud ??? ?? (??)
64
IBM Watson Assistant ???
65
IBM Watson Assistant ???
66
IBM Watson Assistant ???
67
IBM Watson Assistant ???
68
IBM Watson Assistant ???
69
IBM Watson Assistant ???
70
IBM Watson Assistant
?? ????
71
IBM Watson
Assistant
IBM Cloud
Assistant #1 Assistant #2
Skill 1 Skill 2 Skill 1 Skill 2
Intent #1 ~ n
Entity @1 ~ n
Dialog
Intent #1 ~ n
Entity @1 ~ n
Dialog
Intent #1 ~ n
Entity @1 ~ n
Dialog
Intent #1 ~ n
Entity @1 ~ n
Dialog
?? #1
72
???? ?? ?? (??)
73
????
???? ??
????
?? ??
? ?????
??? ?? ?
2?? ???
??? ????
??? ??
???? ?? ?? (??)
74
????
??? ?? ??
???
????
??, ??,
? ?? ??
??
#1 ???? ??
???
???
?? ??? ??
??
#2 ¡°??¡±???
???
???
?? ??? ??
??
#3 ¡°??7?¡±
?? ???
???
?? ??? ??
??
#4 ¡°3?¡±?
?? ???
???
?? ??
?? ??
Skill ??? -
Restaurant Booking App
75
Skill ??? -
Restaurant Booking App
76
Intent ??? -
#hours_of_operation
77
Intent ??? -
#hours_of_operation
78
User examples
what time do you open
when are the hours
when can I come in
when do you close
when is the store available
Intent ??? -
#hours_of_operation
79
Intent ??? -
#hours_of_operation
80
Intent ??? -
#book_table
81
Intent ??? -
#book_table
82
User examples
Can I book a table for 4 people, at 7pm?
can i book a table?
Can I reserve a table for 10 people at 8pm?
can I reserve a table?
I'd like to book a table
I'd like to book a table for 3 people, at 10am
I'd like to reserve a table
I'd like to reserve a table for 7 people, at 6pm
Intent ??? -
#book_table
83
Intent ??? -
#locations
84
Intent ??? -
#locations
85
User examples
can you tell me where it is?
can you tell me where the restaurant is?
how can i get there?
please, let me know the address of the restaurant
please, let me know the location of the restaurant
please, tell me the address of the restaurant
please, tell me the location of the restaurant
plz, let me know the address of it
Where is the store at
Intent ??? -
#locations
86
User examples
plz, let me know the location
plz, let me know the location of it
plz, tell me the address
plz, tell me the address of it
plz, tell me the location of it
what's the address of the restaurant?
where is the restaurant
where is the restaurant located?
where is it
Intent ??? -
#locations
87
??? Intent
88
Entity ??? -
@locations
89
Entity ??? -
@locations
90
Entity ??? -
@locations
91
Entity ??? -
System Entity
92
Dialog ??? ??¡­
93
??: https://cloud.ibm.com/docs/services/assistant?topic=assistant-dialog-overview#dialog-overview-variety
Dialog ??? (?? ??)
94
Dialog ??? -
¡°Welcome¡± Node
95
Dialog ??? -
¡°Hours of Operation¡± Node
96
Dialog ??? -
¡°Hours of Operation¡± Node
97
#3
?? ???? ?? ???
? ??? ???? ???
? ??
#1
???? ?? Intent ?
???? ??? ? ?? ??
? ????? ??
#2
???? ??? ???
??? ?? ??
#4
? ??? ?? ??
Dialog ??? -
¡°Hours of Operation¡± Node
98
???? ???? ?? ??
??? ???? ??? ???
??? ???? ??? intent?
#hours_of_operation ??
???
Dialog ??? -
¡°Locations¡± Node
99
#1
???? ?? Intent ?
???? ??? ? ?? ??
? ????? ??
#2
? ????? ?? ??? 2?? ????
? Intent? ?? ??? ???
????? ?? ?? Customize?
???? ??? ???? ?
Dialog ??? -
¡°Locations¡± Node
100
Dialog ??? -
¡°Locations¡± Node
101
Dialog ??? -
¡°Locations¡± Node
102
Dialog ??? -
¡°Locations¡± Node
103
Dialog ??? -
¡°Locations¡± Node
104
Dialog ??? -
¡°Locations¡± Node
105
Dialog ??? -
¡°Locations¡± Node
106
Dialog ??? -
¡°Locations¡± Node
107
Dialog ??? -
¡°Locations¡± Node
108
Dialog ??? -
¡°Book Table¡± Node
109
Dialog ??? -
¡°Book Table¡± Node
110
Dialog ??? -
¡°Book Table¡± Node
111
Dialog ??? -
¡°Book Table¡± Node
112
CHECK FOR SAVE IT AS
IF NOT
PRESENT, ASK
TYPE
@locations $locations Which store did you want
to go to? First or Main? Required
@sys-date $date What day do want to
come in? Required
@sys-time $time What time did you want
to arrive? Required
@sys-number $number How many people in your
party? Required
Dialog ??? -
¡°Book Table¡± Node
113
Dialog ??? -
¡°Book Table¡± Node
114
Dialog ??? -
¡°Book Table¡± Node
115
Dialog ??? -
¡°Book Table¡± Node
116
Dialog ??? -
¡°Book Table¡± Node
117
Dialog ??? -
¡°Book Table¡± Node
118
???? ??? ??? ??? ? ?? ? 2?? ?? ? ?? ? ?????? ??? ??? ??
???? ¡°Can I book a room?¡±?? ???? ?? ?? ??? ??? ???
??? ???? ??? ???? ?? ??.
? ??? ??? ???? ???
Dialog ?? -
¡°Book Table¡± node
119
??? ??? ??? ??? ??? ??? ? ??? ????? ?? ??? ???? ?? ????? ??.
??? ?? ¡°The assistant should¡± ???? ?? ??? ¡°Jump to¡±? ??? ? ??? ?? ?? ????
Welcome ??? ????? ???? ??? ? ??? Respond? ?? ??.
Dialog ?? -
¡°Welcome¡± Node
120
? ??? ??? ??? ? ? ??? ???? ? ??? ???? ?? Context Variable? ???
???? ? ??? ??? ?? ?????? ??.
??? ??? Welcome Node ??? Welcome Node ? ??? ? ??? ?? Context Variable?
?????? ?? ?????.
??? ?? ??? ??? ?? ? Open JSON Editor? ???? context variable?? ?????
??? ?? ??? ??.
Dialog ?? -
¡°Welcome¡± Node
121
{
¡°output":{ ¡­ },
"context": {
"locations": null,
"time": null,
"date": null,
"number": null }
}
??? ?? JSON Editor?? ?? ??? ? ??? ???? Context Variable ?? ??? ?? null ?
????.
??? ?? ?? ???? ? ???? ??? ?? ??? ???? ??? ??? ? ?? ??.
Context variable
???
Dialog ?? -
¡°Welcome¡± Node
122
??? ???? ? ??? ?? ??? ?? ??? Context Variable? ?? ?? null ? ??? ??.
Dialog ??? -
¡°Book Table¡± Node
123
??? ? ? ? ?? ???? ?? ?? ??? ?? ??? ???? ? ??? ??? ???? ? ??????
?? ?? ??? ?? ?? ??? ??? ?? ?? ??? ??? ?? ??? ??? ???? ??.
Dialog ?? -
¡°Welcome¡± Node
124
??, Intent, Entity, Dialog ?? ????? ???? ?????? Node-Red? ?? ???? ????
??? ????. ? ?? Welcome ??? ???? ??? ? ??? ????? ??? ??? ???
¡°/start¡±?? ??? ????? ?? Watson Assistant ? ??? ???.
???, ?? ??? Entity? ?? ??? ? Entity? Welcome Node ? ?????? ??.
Dialog ?? -
¡°Welcome¡± Node
125
??? ?? telegram_start ?? ???? Entity? ?? ??? ??? ??? /start ? ?? ????.
Dialog ?? -
¡°Welcome¡± Node
126
??? ?? @telegram_start ? Welcome Node? ¡°If assistant recognizes¡± ???
or ???? ???? ????.
Node-Red ? ?????
127
IBM Cloud ??? ?? ?? ???????? ???? ???? ??? ?? ?????
??? ?? ?????? ?? ?? ???????? ? ? ??? ??? ????? ?
https://nodered.org/
IBM Node-Red Starter Kit ??
128
IBM Node-Red Starter Kit ??
129
IBM Node-Red Starter Kit ??
130
IBM Node-Red Starter Kit ??
131
IBM Node-Red Starter Kit ??
132
IBM Node-Red Starter Kit ??
133
IBM Node-Red Starter Kit ??
134
IBM Node-Red Starter Kit ??
135
IBM Node-Red Starter Kit ??
136
IBM Node-Red Starter Kit ??
137
IBM Node-Red Starter Kit ??
138
IBM Node-Red Starter Kit ??
139
IBM Node-Red ???
140
Node-Red ???
Node-Red: an open source logic engine that allows programmers of any level to easily write code
that can connect to APIs, hardware, IoT devices or online services
141
Node-Red ???
142
IBM Node-Red ?
Telegram connector ??
143
IBM Node-Red ?
Telegram connector ??
144
IBM Node-Red ?
Telegram connector ????
145
Chat Flow ???
146
Chat Flow ???
147
Chat Flow ???
148
Chat Flow ???
149
1st function - Prepare for Conversation
<Source Code>
msg.chatId = msg.payload.chatId;
msg.payload = msg.payload.content;
return msg;
Chat Flow ???
150
2nd function - Prepare for Telegram
<Source Code>
msg.payload = {
chatId : msg.chatId,
type : "message",
content : msg.payload.output.text[0]
};
return msg;
Chat Flow ??
151
IBM Node-Red Flow (??)
152
Telegram ?? ?? ??
153
IBM Cloud ??? ?? ??
154
?? #2
155
?? QnA ?? (???)
156
??? ??? ????
605.2 km
????? ????
???? 3? ?? ?? ??
???? ?????(???
?: Charles ¡­
?? QnA ?? ???? ??..
? ?? ?? ?????? ??? ?? ?? ???? ?? API DATA ??? ???? ??? API Key
? ?? ??? ?????? ??
? ?? ???? ?? API DATA ??? ???? API ?? ?? ??? ???? ?? ? ?? (???
? API? ??? ???)
? Google Colab(?? ??)?? ??? ? ??? ??? ?? ?? ? ?? ??? ?? ??? ???
?? ???? ?? ? ?? API? ??? ? ?? ??? ?? ??? ???? ?? (Gmail ???
????, ????? ??? JSON ???? ? ????? ??? ???? ??? Key? ????
Value? ?? ? ??? ????? ??? ??? ???? ????? ??? ? ??? ?)
? Cloud(????)? ???? ? ?? ???? ?? ??? ?? (??? IT ???? ???? ??
????? ?? ?? ? ??? Auto Scailing ? ???? ??? ??? ??? ??)
? Web Hook ? Serverless Function ??? ?? ?? (??? ???? ??? ??? ? ? Watson
Assistant? ??? ?? ?? ?? ???? ???? ??? ?? ????, IBM ???? ???
Serverless Function? ??? Action? ?? ? ?? Action?? ?? ???? ???? ????
?? ? ?? Action? URL? Watson Assistant ?? ?? ?? Skill ? Web Hook?? ?????
??? ????? ???)
157
?? ???? API Key ??
158
?? ?? ?? API ? ?? ??
?? (Python Code)
159
Google Colab ??
?? Python Code ?? ? ??
160
Google Colab ??
?? Python Code ?? ??
161
???? API ?? ? ????
(JSON ??) ?? - ?? ?? ??
162
??: ¡°????? ????¡±
???? API ?? ? ????
(JSON ??) ?? - ?? ??
163
??: ¡°abvfdddd¡±
???? API ?? ? ????
(JSON ??) ?? - ?? ??
164
??: ¡°#@!!! ????¡±
???? API ?? ? ????
(JSON ??) ?? - ??? ??
165
??: ¡°?? ????¡±
Google Colab?? ????? ??? ?? ??
? OOP ??? ?? Class? ??? ? ??? (1)
166
Google Colab?? ????? ??? ?? ??
? OOP ??? ?? Class? ??? ? ??? (2)
167
Cloud ? ??
168
Cloud? ????, ?? ??? ?? ???? ?? ???? ???? ?? ???? ??? ? ??? ???
??? ??? ?? ????, ?? ?? ??? ?? ??? ??? ??? ?? ???? ??? ???? ?? ?
??? ?? ??? ????.
Cloud ??? ?? ??? ???? ???? IT ???, ??? ? ?????? ??? ??? ?? ?? ??? ?
?? ?? ?? ??? ? ? ??? ?? ??? ???? ????.
Cloud? ????? ??? ???? ???? Cloud ??? ?? ??? ?? ? ??? ????? ??,
???? ???? ??? ????? ???? ??? ?? ??? ?? ???? ??? ???? ????? ??
???? ?? ??, OS, Software?? ??? ? ??.
??: http://ccr.sigcomm.org/online/files/p50-v39n1l-vaqueroA.pdf
Cloud ? ??
169
??: https://www.journaldev.com/25061/cloud-computing
Cloud ? ?? ??
(Auto Scaling)
170
Cloud?? Scaling? ??? Cloud ?? ??? ???? ??? ???? ???? ?? ?? ????.
Cloud? ?? ???? ?? ????? ??? ??? ??? ?? ????? ??? ?? ??? ????,
??? IT ??? ???? Cloud ??? ?? ??? ?? ?????? ???? ?????? ????
???? ??? ???? ???? ? ? ?? ???? ????.
? ???? ???? Auto Scaling??? ??.
Cloud ??? ?????
? ?/?? ???? ???
?????? ????
Scaling? ??
(Auto Scaling)
??: https://www.nitrix-reloaded.com/2016/10/01/scalability-scale-outin-vs-scale-updown-horizontal-scaling-vs-vertical-scaling/
Web Hook & Serverless
Function in Chatbot
171
Webhook? ???? ??? ??? ?? ??? ? ?? ??? ?????? HTTP POST? ??? ????,
Webhook? ??? ? ???????, ?? ??? ??? ? URL? ?? POST???? ??? ????.
?? ???? ?? ??? ??? ???? ???? ??? ???? Webhook? ??? ??????? URL?
??? ? ??? ?? ?? IBM Cloud ?? Skill ?? Webhook URL? ??? ? ?? Node ?? Webhook?
????? Webhook? ?? ?? ???? ???? ???? ??? ? ??? ?? ??.
Serverless Function ? ?? ????? ??? ??? ?? Function? ??? ? ?? ???? ??? ???
Function? ??? ? ???? ???? ???? ??? ???? ?? Function? ??? ? ???? ??? ?
??? ??? ??? ???? ??? ??? ????? ????? ?? ??? ??? ???? ??? ??
??? ? ??? ?? ???? ??.
IBM Cloud ??? IBM Cloud Function ??? ???? Serverless Function? ???? ????? ?? ??
?? ??? ?? ???? ????? ???? ??? ??? ?? ??? API? ?? ???? ???? ??? ?
?? ? ??? ??? ?? ???? ???? ?? IBM Cloud Function??.
IBM Cloud Function ??? ?? ??? ???? ??? Action??? ?? ? Action ??? ????? ???
?? ?? ??? ?? ??? ?? ? ?? ? Action ??? URL? ??? ??? ?? IBM Watson Assistant
? Skill ?? Webhook ? ? URL? ??? ?? ??? ?? ??? ?? ?? Action? ???? ? ??.
IBM Cloud Function ??
Action ???
172
IBM Cloud Function ??
Action ???
173
IBM Cloud Function ??
Action ???
174
IBM Cloud Function ??
Action ???
175
IBM Cloud Function ??
Action ???
176
IBM Cloud Function ??
Action ???
177
IBM Cloud Function ??
Action ???
178
IBM Cloud Function ??
Action ???
179
IBM Cloud Function ??
Action? Endpoints?? ?? ??
180
IBM Cloud Function ??
Action? Endpoints?? ?? ??
181
IBM Watson Assistant??
Skill ?? - Wiki_QA_App
182
Skill?? Entity ?? -
@telegram_start
183
Dialog ?? Node ?? -
¡°?? ??¡± Node
184
Skill ?? Webhook ??
185
Skill ?? Web Hook ??
186
Skill ?? Web Hook ??
187
Skill ?? Web Hook ??
188
Dialog ?? Node ?? -
¡°??¡± Node ? ?? ???? ??
189
Dialog ? ?? Node?
Web Hook ?? ? ????
190
??: https://cloud.ibm.com/docs/services/assistant?topic=assistant-dialog-webhooks
¡°??¡± Node ? Webhook ???
191
¡°??¡± Node ? Webhook ??
??? ??
192
IBM Watson Assistant ???
???
193
Node-Red ?? ??? ???
?? ? Chat Flow ??? ??
194
?????? ?? ??
195
?? #3
196
??? ?? (??)
197
??? ?? ???? ??..
? ?? ??? (https://twitter.com/ )? ???? ???? ?? ? (???
??? ????? ?? ???? ?)
? ??? API? ???? ?? ??? ??? ???(https://
developer.twitter.com/en/apply-for-access.html )? ???? ???
???? ???? ? ??? ?? ?? ??? ???? ??? ?
? ??? ??? ??? ?? ??? ? ??? ??? ?? ? ??? ??
? ?? Consumer key (API key), Consumer Secret (API Secret),
Access Token, and Access Token Secret ? 4?? ?? ?
? ?? ? ??? ?? ? ?? ???? ???? ?? ??? ???? ?
?? ???? ? ??? ??? ??? ??? ? ???? ??? ??
? ????? ??
198
??? ????
199
??? ????
200
??? ??? ??? ??
201
??? API ??
202
??? API ??
203
??? API ??
204
??? API ??
205
<??>
Through Twitter API or Twitter data, I'd like to create a chatbot for showing
users recent tweets and the relevant information to enable them to utilize those things.
Since I'm a beginner as a chatbot developer, I just want to use a function of showing
last tweets on my chatbot. That's it.
??? API ??
206
??? API ??
207
??? API ??
208
??? API ??
209
??? API ??
210
??? API ??
211
??? API ??
212
??: This app is about showing users last tweets posted from twitter members.
??? API ??
213
??: This app is just to retrieve last tweets posted from twitter member.
I'd like to create a chatbot for showing users a couple of recent tweets. That's it .
??? API ??
214
??? API ??
215
??? API ??
216
??? API ??
217
?? ???? ??? ??
?? ? ??
218
?? ???? ??? ??
?? ? ??
219
IBM Cloud Function ??
Action ???
220
IBM Cloud Function ??
Action ???
221
IBM Cloud Function ??
Action ???
222
IBM Cloud Function ??
Action ???
223
IBM Cloud Function ??
Action ???
224
IBM Cloud Function ??
Action ???
225
IBM Cloud Function ??
Action ???
226
IBM Cloud Function ??
Action ???
227
Parameter Name: account
Parameter Value: ¡°@withMBC¡±
IBM Cloud Function ??
Action ???
228
IBM Watson Assistant??
Skill ?? - Show_Last_Three_Tweets_App
229
Skill?? Intent ?? - #twitter
230
Skill?? Intent ?? - #twitter
231
Skill?? Intent ?? - #twitter
232
User examples
@blackmirror
any news from twitter
hey give me the last 3 tweets
news on the event from twitter
show me some news from twitter
show me the last 3 tweets
show me what social media is saying about the event
Skill?? Intent ?? - #twitter
233
User examples
some tweets
twitter @account
twitter messages
twitts please
what people is saying about the show
what people is saying on twitter
what the social media is telling about the event ?
Skill?? Intent ?? - #twitter
234
Skill?? Entity ?? - @account
235
accountNames / Patterns / @([A-Za-z0-9_]+)
Skill?? Entity ?? -
@telegram_start
236
Skill?? System Entity ??
237
Dialog ?? Node ?? -
¡°Welcome¡± Node
238
Dialog ?? Node ?? -
¡°Twitter - last three tweets¡± Node
239
<? @account.literal ?> -> ???? ??? ?? ? @account ? ?? Entity? ??? ?? ??? ??
Sub Node ?? -
¡°Account Specified¡± Node
240
Sub Node ?? -
¡°Account NOT Specified¡± Node
241
¡°Twitter - last three tweets¡±
Node ??
242
¡°Twitter - last three tweets¡±
Node ????
243
IBM Cloud Function ?? Action
? Endpoints?? ?? ??
244
IBM Cloud Function ?? Action
? Endpoints?? ?? ??
245
Skill ?? Web Hook ??
246
Skill ?? Web Hook ??
247
Skill ?? Web Hook ????
248
¡°Account Specified¡± Node?
Web Hook ???
249
¡°Account Specified¡± Node??
Web Hook? ?? ???? ??
250
Skill Refresh ?
Webhook ??? ??
251
¡°Account Specified¡± Node?
Web Hook ???? ??
252
1. Web Hook ??? ????? ??? ??
Last Tweets for $account:<br> - <? $webhook_result_1.response.result.message[0] ?> <br> - <?
$webhook_result_1.response.result.message[1] ?><br> - <? $webhook_result_1.response.result.message[2] ?>
2. Web Hook ??? ???? ??
I couldn't find the account - please try again with e.g. @blackmirror @stranger_things
?? ?? ?? ??
253
Node-Red ?? Chat Flow ??
254
Telegram?? ?? ??
255
Reference (1)
? https://medium.com/swlh/what-is-a-chatbot-and-how-to-use-
it-for-your-business-976ec2e0a99f
? https://www.digitaldoughnut.com/articles/2019/april/the-five-
types-of-chatbot-use-for-businesses
? https://developer.ibm.com/recipes/tutorials/how-to-create-a-
watson-chatbot-on-nodered/
? https://medium.com/ibm-watson/chatting-with-watson-to-
hook-any-tweets-webhook-tutorial-bf0fac67d604
? https://www.entrepreneur.com/article/337430
256
Reference (2)
? https://medium.com/ibm-garage/designing-a-chatbot-
with-ibm-watson-assistant-7e11b94c2b3d
? https://developer.ibm.com/events/how-to-build-your-
own-chatbot/
? https://medium.com/deep-math-machine-learning-ai/
chapter-11-chatbots-to-question-answer-systems-
e06c648ac22a
? https://chatbotslife.com/ultimate-guide-to-leveraging-
nlp-machine-learning-for-you-chatbot-531ff2dd870c
257
Reference (3)
? https://brunch.co.kr/@dol74/142
? /alexglee/ai-chatbot-191433017?
fbclid=IwAR2CsBwwaqN-
K1Tg7S_NtGBaJEkMouRoKvNXE0KHWDr0KPepFgpgM3askaE
? https://medium.com/landbot-io/creating-conversational-experiences-ii-build-
and-design-20ac88d7ee72
? https://developer.ibm.com/kr/watson/2017/01/13/watsonchatbot-1-watson-
conversation/
? https://developer.ibm.com/kr/watson/watson-service/2017/02/26/watson-
conversation-ui-%ed%88%b4-%ec%82%ac%ec%9a%a9%eb%b2%95/
? https://cloud.ibm.com/docs/services/assistant?topic=assistant-dialog-
overview#dialog-overview-variety
258
Reference (4)
? https://www.youtube.com/watch?v=OPdOCUPGMIQ
? https://www.youtube.com/watch?v=o-uhdw6bIyI
? https://www.youtube.com/watch?v=XkhAMe9gSFU
? https://developer.ibm.com/answers/questions/390108/how-can-i-
restart-a-conversation-which-clears-all/
? https://discourse.nodered.org/t/node-red-telegram-polling-error/
16765/8
? http://blog.drakejin.me/Serverless-1/
? https://union.parti.xyz/posts/22676
259
Thank You!
260

More Related Content

What's hot (19)

PDF
Explicit Density Models
Sangwoo Mo
?
PDF
IBM SPSS Modeler V18.1ЙCÄÜ¥¬¥¤¥É
IBM Analytics Japan
?
PDF
Architecture Design for Deep Neural Networks III
Wanjin Yu
?
PDF
Weak Supervision.pdf
StephenLeo7
?
PPTX
Segment Anything
fake can
?
PPTX
NIPS2015Õi¤ß»á: Ladder Networks
Eiichi Matsumoto
?
PDF
MobileNet V3
Wonbeom Jang
?
PDF
Interpretability of Convolutional Neural Networks - Eva Mohedano - UPC Barcel...
Universitat Polit¨¨cnica de Catalunya
?
PPTX
Federated Learning
DataWorks Summit
?
PDF
PR-043: HyperNetworks
Taesu Kim
?
PDF
Enhanced Deep Residual Networks for Single Image Super-Resolution
NAVER Engineering
?
PDF
Graph neural networks overview
Rodion Kiryukhin
?
PDF
Gaussian process in machine learning
VARUN KUMAR
?
PDF
Image anomaly detection with generative adversarial networks
SakshiSingh480
?
PPTX
Ensemble learning
Megha Sharma
?
PPTX
StyleCLIP: Text-Driven Manipulation of StyleGAN Imagery
ivaderivader
?
PDF
ÎÄÏ×½B½é£ºVideoCLIP: Contrastive Pre-training for Zero-shot Video-Text Understanding
Toru Tamaki
?
PDF
Masked Autoencoders Are Scalable Vision Learners
GuoqingLiu9
?
PDF
¶Ù±ð±ð±è±ô±ð²¹°ù²Ô¾±²Ô²µÂÖÕi»á
ÕýÖ¾ ƺÛà
?
Explicit Density Models
Sangwoo Mo
?
IBM SPSS Modeler V18.1ЙCÄÜ¥¬¥¤¥É
IBM Analytics Japan
?
Architecture Design for Deep Neural Networks III
Wanjin Yu
?
Weak Supervision.pdf
StephenLeo7
?
Segment Anything
fake can
?
NIPS2015Õi¤ß»á: Ladder Networks
Eiichi Matsumoto
?
MobileNet V3
Wonbeom Jang
?
Interpretability of Convolutional Neural Networks - Eva Mohedano - UPC Barcel...
Universitat Polit¨¨cnica de Catalunya
?
Federated Learning
DataWorks Summit
?
PR-043: HyperNetworks
Taesu Kim
?
Enhanced Deep Residual Networks for Single Image Super-Resolution
NAVER Engineering
?
Graph neural networks overview
Rodion Kiryukhin
?
Gaussian process in machine learning
VARUN KUMAR
?
Image anomaly detection with generative adversarial networks
SakshiSingh480
?
Ensemble learning
Megha Sharma
?
StyleCLIP: Text-Driven Manipulation of StyleGAN Imagery
ivaderivader
?
ÎÄÏ×½B½é£ºVideoCLIP: Contrastive Pre-training for Zero-shot Video-Text Understanding
Toru Tamaki
?
Masked Autoencoders Are Scalable Vision Learners
GuoqingLiu9
?
¶Ù±ð±ð±è±ô±ð²¹°ù²Ô¾±²Ô²µÂÖÕi»á
ÕýÖ¾ ƺÛà
?

Similar to IBM Watson Assistant ?? ?? ?? ?? ?? (2019.11.18) (20)

PDF
e-Commerce Chatbot Day1
Startup Coding
?
PDF
[????] ?? ??? 201707
Taejoon Yoo
?
PDF
Chatbot Extension ?? ? Chatbot Builder ???
Clova Platform
?
PDF
Designing Effective Interview Chatbots: Automatic Chatbot Profiling and Desig...
? ??
?
PPTX
Chatbot Extension ?? ? ???
Clova Platform
?
PPTX
Chatbot? ??
KyoungilYoon
?
PDF
Oracle Digital Assistant ??
Mee Nam Lee
?
PDF
[2016 ??? ??? ????] 4 5(????). ????? ?? ??? ?? ???? ?? ??? ??
K data
?
PPTX
Commerce chatbot - 11?? ??? ??? ?? ?? ??
HoChul Shin
?
PPTX
H? RPA Definiton
ssuser9a50211
?
PPTX
Rpa definiftion
ssuser9a50211
?
PDF
[Rightbrain] AI???? UX? ?? - ??/AI??? ?????
RightBrain inc.
?
PDF
Do you know DUNA? - Chatbot SaaS
stuko
?
PDF
RPA (ROBOTIC PROCESS AUTOMATION)
ssuser9a50211
?
PDF
AI ?????? ? ? ????
Myuserable
?
PDF
???????? 1???? ????
?? ?
?
PDF
Clova ai-business-day-session-4
Clova Platform
?
PDF
???? - Service hub [???? ??]
HelloDigital Inc.
?
PDF
Clova Tech Summit 2: ???? ?? ??? Chatbot ?? ??? ??
Clova Platform
?
PDF
Oracle innovation summit chatbot
Mee Nam Lee
?
e-Commerce Chatbot Day1
Startup Coding
?
[????] ?? ??? 201707
Taejoon Yoo
?
Chatbot Extension ?? ? Chatbot Builder ???
Clova Platform
?
Designing Effective Interview Chatbots: Automatic Chatbot Profiling and Desig...
? ??
?
Chatbot Extension ?? ? ???
Clova Platform
?
Chatbot? ??
KyoungilYoon
?
Oracle Digital Assistant ??
Mee Nam Lee
?
[2016 ??? ??? ????] 4 5(????). ????? ?? ??? ?? ???? ?? ??? ??
K data
?
Commerce chatbot - 11?? ??? ??? ?? ?? ??
HoChul Shin
?
H? RPA Definiton
ssuser9a50211
?
Rpa definiftion
ssuser9a50211
?
[Rightbrain] AI???? UX? ?? - ??/AI??? ?????
RightBrain inc.
?
Do you know DUNA? - Chatbot SaaS
stuko
?
RPA (ROBOTIC PROCESS AUTOMATION)
ssuser9a50211
?
AI ?????? ? ? ????
Myuserable
?
???????? 1???? ????
?? ?
?
Clova ai-business-day-session-4
Clova Platform
?
???? - Service hub [???? ??]
HelloDigital Inc.
?
Clova Tech Summit 2: ???? ?? ??? Chatbot ?? ??? ??
Clova Platform
?
Oracle innovation summit chatbot
Mee Nam Lee
?
Ad

More from KYOYOON JUNG (6)

PDF
MS AI School 5? - 3? ???? - AI ?? ???? ?? ?? ??? ?? ????
KYOYOON JUNG
?
PDF
MS AI School 5? - 2? ???? - 1? ????? ?? ?? AI ??? ?? ????
KYOYOON JUNG
?
PDF
MS AI School 5? - 1? ???? - AI ?? ?? ?? ?? ?? ?? ????
KYOYOON JUNG
?
PDF
The future of no code platform (Google AppSheet)
KYOYOON JUNG
?
PDF
???? ? ??? ?? (2020.01.07)
KYOYOON JUNG
?
PDF
????, ????? ?? ???? 2019.12.20
KYOYOON JUNG
?
MS AI School 5? - 3? ???? - AI ?? ???? ?? ?? ??? ?? ????
KYOYOON JUNG
?
MS AI School 5? - 2? ???? - 1? ????? ?? ?? AI ??? ?? ????
KYOYOON JUNG
?
MS AI School 5? - 1? ???? - AI ?? ?? ?? ?? ?? ?? ????
KYOYOON JUNG
?
The future of no code platform (Google AppSheet)
KYOYOON JUNG
?
???? ? ??? ?? (2020.01.07)
KYOYOON JUNG
?
????, ????? ?? ???? 2019.12.20
KYOYOON JUNG
?
Ad

IBM Watson Assistant ?? ?? ?? ?? ?? (2019.11.18)