38
© 2017 IBM Corporation 고대민 부장 한국 IBM, SW Lab Services 왓슨 컨버세이션 서비스를 이용한 챗봇 개발방안 소개

Session2 WCS 챗봇개발방안 고대민 공유 v2 · 2017-11-16 · Session2_WCS_챗봇개발방안_고대민_공유_v2 Created Date: 11/15/2017 6:06:19 AM

  • Upload
    others

  • View
    0

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Session2 WCS 챗봇개발방안 고대민 공유 v2 · 2017-11-16 · Session2_WCS_챗봇개발방안_고대민_공유_v2 Created Date: 11/15/2017 6:06:19 AM

© 2017 IBM Corporation

고대민 부장한국 IBM, SW Lab Services

왓슨 컨버세이션 서비스를이용한 챗봇 개발방안 소개

Page 2: Session2 WCS 챗봇개발방안 고대민 공유 v2 · 2017-11-16 · Session2_WCS_챗봇개발방안_고대민_공유_v2 Created Date: 11/15/2017 6:06:19 AM

© 2017 IBM Corporation 2Page

목차1. WCS (Watson Conversation Service)

§ Overview§ Create Workspace§ Prepare Intent, Entity, Dialog

2. Project Approach

References

Page 3: Session2 WCS 챗봇개발방안 고대민 공유 v2 · 2017-11-16 · Session2_WCS_챗봇개발방안_고대민_공유_v2 Created Date: 11/15/2017 6:06:19 AM

© 2017 IBM Corporation 3Page

WCS OverviewBuild natural language conversation using a graphical user environmentwith machine learning experience.

Controller

LegacyWatson

Page 4: Session2 WCS 챗봇개발방안 고대민 공유 v2 · 2017-11-16 · Session2_WCS_챗봇개발방안_고대민_공유_v2 Created Date: 11/15/2017 6:06:19 AM

© 2017 IBM Corporation 4Page

WCS Overview

회의실 예약해줘

희망 날짜와 시간을 알려주세요

11/9 오전 6시

예약이 완료되었습니다

사용자)

챗봇)

사용자)

챗봇)

Illustrative

q 회의실 예약 Use Case

Page 5: Session2 WCS 챗봇개발방안 고대민 공유 v2 · 2017-11-16 · Session2_WCS_챗봇개발방안_고대민_공유_v2 Created Date: 11/15/2017 6:06:19 AM

© 2017 IBM Corporation 5Page

UserWCS Overview

Controller WCS LegacySystem

회의실 예약해줘 회의실 예약해줘

• Intent:#reserve_room• Response:희망 날짜와 시간을

알려주세요희망 날짜와 시간을 알려주세요

9/2오전 6시 9/2오전 6시

Entity:@sys-dte:2017-09-02@sys-time:06:00:00

reserveRoom(‘0902’,‘0600’)

TRUE예약이 완료되었습니다.

자연어 기반사용자 요청의

이해

사용자가입력한 정보

이해

회의실 예약

Orchestration

Illustrative

Page 6: Session2 WCS 챗봇개발방안 고대민 공유 v2 · 2017-11-16 · Session2_WCS_챗봇개발방안_고대민_공유_v2 Created Date: 11/15/2017 6:06:19 AM

6Page

Page 7: Session2 WCS 챗봇개발방안 고대민 공유 v2 · 2017-11-16 · Session2_WCS_챗봇개발방안_고대민_공유_v2 Created Date: 11/15/2017 6:06:19 AM

© 2017 IBM Corporation 7Page

How to use WCS

1. Train Watson to understand your users' input with user example utterances– Intents: A group of examples that a user might say to communicate a specific

goal or idea that the user wants– User examples: Questions collected by the client to support the client’s use

case.– Example:

• Intent: #hotel_hours• User Examples

• Hours for pool• What are the hours of the gym?

Page 8: Session2 WCS 챗봇개발방안 고대민 공유 v2 · 2017-11-16 · Session2_WCS_챗봇개발방안_고대민_공유_v2 Created Date: 11/15/2017 6:06:19 AM

© 2017 IBM Corporation 8Page

How to use WCS

2. Identify the terms that may vary in your users' input– Entities: Watson's way of handling significant parts of an input that should be

used to slightly alter the way it responds to the intent.• Examples:

• Entity Name: @hotel_amenity• Entity Value: pool, gym• Synonym: swimming pool, fitness center

Page 9: Session2 WCS 챗봇개발방안 고대민 공유 v2 · 2017-11-16 · Session2_WCS_챗봇개발방안_고대민_공유_v2 Created Date: 11/15/2017 6:06:19 AM

© 2017 IBM Corporation 9Page

How to use WCS

3. Create the responses to your user's questions: – Dialog Builder: Used to build dialog chat flows– Dialog: the logical flow that determines the responses your bot will give

when certain intents and/or entities are detected.

4. Test and Improve– Use the Try it out panel– Improve component

Page 10: Session2 WCS 챗봇개발방안 고대민 공유 v2 · 2017-11-16 · Session2_WCS_챗봇개발방안_고대민_공유_v2 Created Date: 11/15/2017 6:06:19 AM

© 2017 IBM Corporation 10Page

목차1. WCS (Watson Conversation Service)

§ Overview§ Create Workspace§ Prepare Intent, Entity, Dialog

2. Project Approach

References

Page 11: Session2 WCS 챗봇개발방안 고대민 공유 v2 · 2017-11-16 · Session2_WCS_챗봇개발방안_고대민_공유_v2 Created Date: 11/15/2017 6:06:19 AM

© 2017 IBM Corporation 11Page

WCS in IBM Cloud

Offerings (Category & Services)

Controller(Orchestration Logic)

IBM Cloud

ServiceInvocationLegend

Watson

WCS

WCS Service Instance(ex: Dev_Connect)

Workspace(ex: Dev_Connect)

• Intents• Entities• Dialog

Service Credentials• User name• Password

Actual Conversation

WCS

Service Instance

1n

q Internal WCS structure

Workspace

1n

Intents Entities Dialog

1

1 1 1

q WCS in IBM Cloud

Category

Service

Users

Page 12: Session2 WCS 챗봇개발방안 고대민 공유 v2 · 2017-11-16 · Session2_WCS_챗봇개발방안_고대민_공유_v2 Created Date: 11/15/2017 6:06:19 AM

© 2017 IBM Corporation 12Page

Create WCS Service Instance

Page 13: Session2 WCS 챗봇개발방안 고대민 공유 v2 · 2017-11-16 · Session2_WCS_챗봇개발방안_고대민_공유_v2 Created Date: 11/15/2017 6:06:19 AM

13Page

Page 14: Session2 WCS 챗봇개발방안 고대민 공유 v2 · 2017-11-16 · Session2_WCS_챗봇개발방안_고대민_공유_v2 Created Date: 11/15/2017 6:06:19 AM

14Page

Page 15: Session2 WCS 챗봇개발방안 고대민 공유 v2 · 2017-11-16 · Session2_WCS_챗봇개발방안_고대민_공유_v2 Created Date: 11/15/2017 6:06:19 AM

15Page

Page 16: Session2 WCS 챗봇개발방안 고대민 공유 v2 · 2017-11-16 · Session2_WCS_챗봇개발방안_고대민_공유_v2 Created Date: 11/15/2017 6:06:19 AM

16Page

Page 17: Session2 WCS 챗봇개발방안 고대민 공유 v2 · 2017-11-16 · Session2_WCS_챗봇개발방안_고대민_공유_v2 Created Date: 11/15/2017 6:06:19 AM

17Page

Page 18: Session2 WCS 챗봇개발방안 고대민 공유 v2 · 2017-11-16 · Session2_WCS_챗봇개발방안_고대민_공유_v2 Created Date: 11/15/2017 6:06:19 AM

© 2017 IBM Corporation 18Page

Car Dashboard Samplehttps://conversation-demo.mybluemix.net/

Page 19: Session2 WCS 챗봇개발방안 고대민 공유 v2 · 2017-11-16 · Session2_WCS_챗봇개발방안_고대민_공유_v2 Created Date: 11/15/2017 6:06:19 AM

© 2017 IBM Corporation 19Page

목차1. WCS (Watson Conversation Service)

§ Overview§ Create Workspace§ Prepare Intent, Entity, Dialog

2. Project Approach

References

Page 20: Session2 WCS 챗봇개발방안 고대민 공유 v2 · 2017-11-16 · Session2_WCS_챗봇개발방안_고대민_공유_v2 Created Date: 11/15/2017 6:06:19 AM

© 2017 IBM Corporation 20Page

WCS in IBM Cloud

Offerings (Category & Services)

Controller(Orchestration Logic)

IBM Cloud

ServiceInvocationLegend

Watson

WCS

WCS Service Instance(ex: Dev_Connect)

Workspace(ex: Dev_Connect)

• Intents• Entities• Dialog

Service Credentials• User name• Password

Actual Conversation

WCS

Service Instance

1n

q Internal WCS structure

Workspace

1n

Intents Entities Dialog

1

1 1 1

q WCS in IBM Cloud

Category

Service

Users

Page 21: Session2 WCS 챗봇개발방안 고대민 공유 v2 · 2017-11-16 · Session2_WCS_챗봇개발방안_고대민_공유_v2 Created Date: 11/15/2017 6:06:19 AM

© 2017 IBM Corporation 21Page

Prepare Intent, Entity, Dialogq Intents: Specific goal or idea that the user wants

• Example:• Intent: #hotel_hours• User Examples : Hours for pool, What are the hours of the gym?

q Entities: Significant parts of an input• Examples:

• Entity Name: @hotel_amenity• Entity Value: pool, gym• Synonym: swimming pool, fitness center

q Dialog: Logical flow that determines responses depending on intents and entities

Page 22: Session2 WCS 챗봇개발방안 고대민 공유 v2 · 2017-11-16 · Session2_WCS_챗봇개발방안_고대민_공유_v2 Created Date: 11/15/2017 6:06:19 AM

22Page

Page 23: Session2 WCS 챗봇개발방안 고대민 공유 v2 · 2017-11-16 · Session2_WCS_챗봇개발방안_고대민_공유_v2 Created Date: 11/15/2017 6:06:19 AM

23Page

Page 24: Session2 WCS 챗봇개발방안 고대민 공유 v2 · 2017-11-16 · Session2_WCS_챗봇개발방안_고대민_공유_v2 Created Date: 11/15/2017 6:06:19 AM

© 2017 IBM Corporation 24Page

Prepare Intent, Entity, Dialogq Intents: Specific goal or idea that the user wants

• Example:• Intent: #hotel_hours• User Examples : Hours for pool, What are the hours of the gym?

q Entities: Significant parts of an input• Examples:

• Entity Name: @hotel_amenity• Entity Value: pool, gym• Synonym: swimming pool, fitness center

q Dialog: Logical flow that determines responses depending on intents and entities

Page 25: Session2 WCS 챗봇개발방안 고대민 공유 v2 · 2017-11-16 · Session2_WCS_챗봇개발방안_고대민_공유_v2 Created Date: 11/15/2017 6:06:19 AM

25Page

Page 26: Session2 WCS 챗봇개발방안 고대민 공유 v2 · 2017-11-16 · Session2_WCS_챗봇개발방안_고대민_공유_v2 Created Date: 11/15/2017 6:06:19 AM

26Page

Page 27: Session2 WCS 챗봇개발방안 고대민 공유 v2 · 2017-11-16 · Session2_WCS_챗봇개발방안_고대민_공유_v2 Created Date: 11/15/2017 6:06:19 AM

© 2017 IBM Corporation 27Page

Prepare Intent, Entity, Dialogq Intents: Specific goal or idea that the user wants

• Example:• Intent: #hotel_hours• User Examples : Hours for pool, What are the hours of the gym?

q Entities: Significant parts of an input• Examples:

• Entity Name: @hotel_amenity• Entity Value: pool, gym• Synonym: swimming pool, fitness center

q Dialog: Logical flow that determines responses depending on intents and entities

Page 28: Session2 WCS 챗봇개발방안 고대민 공유 v2 · 2017-11-16 · Session2_WCS_챗봇개발방안_고대민_공유_v2 Created Date: 11/15/2017 6:06:19 AM

28Page

Page 29: Session2 WCS 챗봇개발방안 고대민 공유 v2 · 2017-11-16 · Session2_WCS_챗봇개발방안_고대민_공유_v2 Created Date: 11/15/2017 6:06:19 AM

29Page

Page 30: Session2 WCS 챗봇개발방안 고대민 공유 v2 · 2017-11-16 · Session2_WCS_챗봇개발방안_고대민_공유_v2 Created Date: 11/15/2017 6:06:19 AM

30Page

Page 31: Session2 WCS 챗봇개발방안 고대민 공유 v2 · 2017-11-16 · Session2_WCS_챗봇개발방안_고대민_공유_v2 Created Date: 11/15/2017 6:06:19 AM

31Page사용자 질의문 입력

Page 32: Session2 WCS 챗봇개발방안 고대민 공유 v2 · 2017-11-16 · Session2_WCS_챗봇개발방안_고대민_공유_v2 Created Date: 11/15/2017 6:06:19 AM

32Page

Intent Matching

Entity Matching

Chatbot 답변

Page 33: Session2 WCS 챗봇개발방안 고대민 공유 v2 · 2017-11-16 · Session2_WCS_챗봇개발방안_고대민_공유_v2 Created Date: 11/15/2017 6:06:19 AM

33Page사용자 질의문 입력

Page 34: Session2 WCS 챗봇개발방안 고대민 공유 v2 · 2017-11-16 · Session2_WCS_챗봇개발방안_고대민_공유_v2 Created Date: 11/15/2017 6:06:19 AM

34Page

Intent Matching

Entity Matching

Chatbot 답변

Page 35: Session2 WCS 챗봇개발방안 고대민 공유 v2 · 2017-11-16 · Session2_WCS_챗봇개발방안_고대민_공유_v2 Created Date: 11/15/2017 6:06:19 AM

35Page

1

4

35

4

1

2

Sure thing! Which genre …

Great choice! Playing …5 2

3

ü

ü

Page 36: Session2 WCS 챗봇개발방안 고대민 공유 v2 · 2017-11-16 · Session2_WCS_챗봇개발방안_고대민_공유_v2 Created Date: 11/15/2017 6:06:19 AM

© 2017 IBM Corporation 36Page

References§ Watson Documentation > Conversation

- https://console.bluemix.net/docs/services/conversation/getting-started.html#gettingstarted

§ Chatbots and Watson: Let’s talk about national parks- https://developer.ibm.com/courses/all/chatbots-watson-lets-talk-national-

parks/

§ IBM Watson Redbooks (Ko, Taemin, et al.)- https://www.redbooks.ibm.com/Redbooks.nsf/domains/watson?Open

Page 37: Session2 WCS 챗봇개발방안 고대민 공유 v2 · 2017-11-16 · Session2_WCS_챗봇개발방안_고대민_공유_v2 Created Date: 11/15/2017 6:06:19 AM

© 2017 IBM Corporation 37Page

For More Information

IT Architect, 부장

SW Lab Services (Watson IoT)Telephone +82-10-4995-4836Email [email protected]

고대민

Page 38: Session2 WCS 챗봇개발방안 고대민 공유 v2 · 2017-11-16 · Session2_WCS_챗봇개발방안_고대민_공유_v2 Created Date: 11/15/2017 6:06:19 AM

© 2017 IBM Corporation 38Page

개발자라면 지금 방문하세요!developer.ibm.com/kr

Thank you