ibm-watson-ruby 0.0.3 → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -10,7 +10,12 @@ describe IBMWatson::Conversation::Service, record: :none do
10
10
  described_class.new(username: username, password: password)
11
11
  end
12
12
 
13
- describe "#message" do
13
+ describe "#message", record: :all do
14
+ before do
15
+ data = YAML.load_file('spec/assets/poc_workspace.json')
16
+ subject.update_workspace(workspace_id: workspace_id, workspace_data: data)
17
+ end
18
+
14
19
  let(:expected_intents) { [{ "intent" => "express_delight", "confidence" => 0.99 }] }
15
20
  let(:expected_context_json) { { "conversation_id" => "b90a141a-14b0-48b5-aad3-f53454e93444",
16
21
  "system" => { "dialog_stack" => [{ "dialog_node" => "Introduce the Bot" }],
@@ -42,4 +47,16 @@ describe IBMWatson::Conversation::Service, record: :none do
42
47
  expect(result.dialog_nodes.first).to be_a_kind_of(IBMWatson::Conversation::DialogNode)
43
48
  end
44
49
  end
50
+
51
+ describe "#update_workspace", record: :all do
52
+ example do
53
+ result = subject.workspace(workspace_id: workspace_id, export: true)
54
+ workspace = {
55
+ intents: result.intents.map(&:as_json),
56
+ entities: result.entities.map(&:as_json),
57
+ dialog_nodes: result.dialog_nodes.map(&:as_json),
58
+ }
59
+ subject.update_workspace(workspace_id: workspace_id, workspace_data: workspace)
60
+ end
61
+ end
45
62
  end
@@ -2,7 +2,377 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: post
5
- uri: https://gateway.watsonplatform.net/conversation/api/v1/workspaces/9c9b5bb9-9841-4c08-a69b-1af8797c74c8/message?version=2017-02-03
5
+ uri: https://gateway.watsonplatform.net/conversation/api/v1/workspaces/c6f27505-bc6c-4914-bd8d-b570d8ff2720?version=2017-02-03
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"name":"POC","created":"2017-03-25T00:48:38.808Z","intents":[{"intent":"ask_about_property","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z","examples":[{"text":"Can
9
+ I enquire about the home on willows road?","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"Can
10
+ you tell me about the house on willows?","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"What
11
+ do you know about 1003 brothers place?","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"What
12
+ do you know about 3520 Willows Road?","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"What
13
+ do you know about the place on drake street?","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"}],"description":null},{"intent":"ask_mls_number","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z","examples":[{"text":"Does
14
+ it have an MLS number?","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"I
15
+ am interested in the MLS number.","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"mls?","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"mls
16
+ number?","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"What''s
17
+ the mls number?","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"}],"description":null},{"intent":"ask_pets","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z","examples":[{"text":"Are
18
+ dogs allowed?","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"Are
19
+ pets allowed?","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"Are
20
+ there any animal restrictions?","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"Can
21
+ I bring a pet?","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"Can
22
+ I have a cat?","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"I
23
+ have a dog, is that allowed?","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"}],"description":null},{"intent":"ask_photos","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z","examples":[{"text":"Can
24
+ I see photos?","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"Can
25
+ I see photos of the house on willows road?","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"Do
26
+ you have pictures?","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"Do
27
+ you have pictures of the place at 3520 Willows Road?","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"Pictures?","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"}],"description":null},{"intent":"ask_the_price","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z","examples":[{"text":"Can
28
+ you tell me what the list price is?","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"How
29
+ much?","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"How
30
+ much does it cost?","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"How
31
+ much does the property cost?","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"How
32
+ much is it?","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"How
33
+ much is the home?","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"How
34
+ much is the house?","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"How
35
+ much is the property?","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"List
36
+ price?","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"Selling
37
+ price?","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"What
38
+ is the asking price?","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"What
39
+ is the list price?","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"What
40
+ is the price of the home?","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"What
41
+ is the price of the house on willows road?","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"}],"description":null},{"intent":"ask_unit_number","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z","examples":[{"text":"Is
42
+ there a unit number?","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"unit?","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"What
43
+ is the unit number?","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"What''s
44
+ the unit?","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"What
45
+ unit number is it?","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"}],"description":null},{"intent":"ask_unknown","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z","examples":[{"text":"Age
46
+ and condition of the roof?","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"Condition
47
+ of property?","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"Did
48
+ the property have a home inspection done when the present owners bought it?","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"Do
49
+ you have the the furnace type and service history?","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"Has
50
+ anybody else made an offer on this property?","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"How
51
+ close is public transit?","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"How
52
+ energy efficient is the property?","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"How
53
+ long has the property been on the market?","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"How
54
+ long have the owners lived there?","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"How
55
+ long they have owned the house?","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"How
56
+ many bathrooms are on the basement?","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"How
57
+ many bedrooms are on the basement?","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"How
58
+ much are utility bills in the area?","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"How
59
+ much can it rent for?","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"How
60
+ new or how sturdy are the drains and guttering?","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"How
61
+ old is the roof","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"peak
62
+ a boo view?","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"Size
63
+ of backyard?","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"Tell
64
+ me about the basement.","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"What
65
+ home repairs/improvements have been made?","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"What
66
+ is the crime rate like in the neighbourhood?","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"What
67
+ is the electrical panel size?","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"What
68
+ is the furnace age?","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"When
69
+ was the boiler last replaced?","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"}],"description":null},{"intent":"ask_what_i_can_do","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z","examples":[{"text":"ask
70
+ what I can do","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"Can
71
+ you answer my real estate questions?","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"How
72
+ can you help me?","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"What
73
+ are your abilities?","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"What
74
+ are your capabilities?","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"What
75
+ can you do?","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"What
76
+ kinds of questions can you answer?","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"}],"description":null},{"intent":"ask_who_i_am","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z","examples":[{"text":"Ask
77
+ who I am","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"Do
78
+ you have a name?","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"What
79
+ do I call you?","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"What
80
+ do your friends call you?","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"What
81
+ is your name?","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"Who
82
+ are you?","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"}],"description":null},{"intent":"ask_zoning","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z","examples":[{"text":"Current
83
+ zoning?","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"What
84
+ is the property zoning?","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"What
85
+ is the zone?","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"What
86
+ is the zoning?","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"What
87
+ zone is it in?","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"Zoning?","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"}],"description":null},{"intent":"confused","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z","examples":[{"text":"help
88
+ me","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"I
89
+ don''t get it","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"I
90
+ don''t understand","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"I
91
+ don''t understand.","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"I''m
92
+ confused","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"I''m
93
+ confused.","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"What?","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"What''s
94
+ happening?","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"}],"description":null},{"intent":"enquire_about_homes","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z","examples":[{"text":"Do
95
+ have homes under 700k?","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"Do
96
+ you have a condo for sale?","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"Do
97
+ you have any condos?","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"Do
98
+ you have any home where I can have a dog?","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"Do
99
+ you have any houses for sale?","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"Do
100
+ you have any pet friendly homes?","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"Do
101
+ you have condos with 2 bathrooms?","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"Do
102
+ you have houses with 5 bedrooms?","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"I''d
103
+ like a place where I can bring my cat.","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"I''m
104
+ interested in a duplex.","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"I''m
105
+ interested in a house.","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"I''m
106
+ looking for a home where I can have a dog.","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"I
107
+ want to know about your apartments for sale.","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"What
108
+ homes do you have for sale?","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"What
109
+ properties do you have?","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"}],"description":null},{"intent":"express_delight","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z","examples":[{"text":";-)","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":";)","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":":-)","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":":)","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"☺","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"Awesome!","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"Excellent!","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"Express
110
+ delight","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"Great!","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"I
111
+ like it!","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"Nice!","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":":smile:","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":":wink:","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"Wow!","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"}],"description":null},{"intent":"greeting","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z","examples":[{"text":"hello","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"hello?","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"hey","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"hi","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"is
112
+ anyone home?","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"is
113
+ someone there?","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"}],"description":null},{"intent":"how_are_you","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z","examples":[{"text":"are
114
+ you doing okay?","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"are
115
+ you okay?","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"how
116
+ are things?","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"how
117
+ are you?","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"how''s
118
+ it going?","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"}],"description":null},{"intent":"like_this","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z","examples":[{"text":"like
119
+ this","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"Like
120
+ this?","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"so
121
+ like this?","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"}],"description":null},{"intent":"no_problem","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z","examples":[{"text":"Don''t
122
+ mention it.","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"Don''t
123
+ worry about it.","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"No
124
+ worries.","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"Oh
125
+ that''s okay.","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"Sure.","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"Tell
126
+ me there''s no problem","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"}],"description":null},{"intent":"open_house","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z","examples":[{"text":"Appointment?","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"Appointment
127
+ time?","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"Can
128
+ I see the house?","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"Can
129
+ I view the house?","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"Is
130
+ there an open house?","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"Is
131
+ there a private viewing?","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"Make
132
+ an appointment","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"open
133
+ house","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"Open
134
+ house times","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"private
135
+ viewing","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"see
136
+ it today","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"see
137
+ it tomorrow","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"viewing","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"When
138
+ can I see it?","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"When
139
+ can I view the house?","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"When
140
+ is the next open house?","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"When
141
+ is the next viewing?","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"}],"description":null},{"intent":"switch_listings","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z","examples":[{"text":"Any
142
+ other homes for sale?","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"Any
143
+ other listing?","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"Can
144
+ you give me some infromation on a listing?","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"I
145
+ am interested in another listing.","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"Let''s
146
+ talk about another listing.","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"Let''s
147
+ talk about another property.","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"Other
148
+ listings for sale?","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"Other
149
+ properties?","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"Property
150
+ list?","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"Show
151
+ me different properties.","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"Show
152
+ me listings.","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"Show
153
+ me the realtor''s listings.","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"Show
154
+ me your other properties.","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"Talk
155
+ about a different property.","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"Tell
156
+ me about a different property.","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"What
157
+ about other properties?","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"What
158
+ listing does he have?","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"What
159
+ listing does she have?","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"What
160
+ listings do you currently have?","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"What
161
+ listings do you have?","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"What
162
+ other listings do you have?","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"What
163
+ other properties do you have for sale?","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"}],"description":null},{"intent":"talk_to_my_boss","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z","examples":[{"text":"Call
164
+ agent.","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"Call
165
+ someone.","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"Call
166
+ you boss now.","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"Call
167
+ your boss.","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"Can
168
+ I talk to a human?","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"Contact
169
+ the realtor.","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"Do
170
+ a phone call.","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"Speak
171
+ to your boss.","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"Talk
172
+ to a human.","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"Talk
173
+ to the realtor.","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"}],"description":null},{"intent":"tell_me_something","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z","examples":[{"text":"Can
174
+ you tell me about the property?","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"I
175
+ am interested in the house.","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"Tell
176
+ me more.","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"Tell
177
+ me something else.","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"Tell
178
+ me something new about the property.","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"What
179
+ can you tell me about the property?","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"What
180
+ else can you tell me?","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"}],"description":null},{"intent":"thanks_and_goodbye","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z","examples":[{"text":"Adios","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"All
181
+ right then.","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"Bye!","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"Bye
182
+ bye!","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"Catch
183
+ you later.","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"Ciao.","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"Farewell","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"Good
184
+ night.","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"I
185
+ must be going.","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"I''ve
186
+ got to get going.","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"Later!","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"Sayonara!","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"So
187
+ long.","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"Take
188
+ care.","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"Take
189
+ it easy.","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"Talk
190
+ to you later.","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"Thanks.
191
+ Goodbye.","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"Thanks.
192
+ Good night.","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"Thank
193
+ you. Goodbye.","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"Thank
194
+ you. Good night.","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"Thank
195
+ you. Have a good one.","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"}],"description":null},{"intent":"thumbs_down","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z","examples":[{"text":":-1:","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"bad","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"i
196
+ don''t like it","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"no","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"nope","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"not
197
+ good","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"}],"description":null},{"intent":"thumbs_up","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z","examples":[{"text":":+1:","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"alright","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"great","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"okay","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"},{"text":"yes","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z"}],"description":null}],"updated":"2017-03-25T00:48:54.442Z","entities":[{"type":null,"entity":"amenities","source":null,"values":[{"value":"bathroom","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z","metadata":null,"synonyms":["bathrooms","toilets"]},{"value":"gym","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z","metadata":null,"synonyms":["gym","workout
198
+ area"]},{"value":"pets","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z","metadata":null,"synonyms":["animals","cat","cats","dog","dogs","pet","pets"]},{"value":"pool","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z","metadata":null,"synonyms":["pool","swimming"]}],"created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z","open_list":false,"description":null},{"type":null,"entity":"filter-thing","source":null,"values":[{"value":"bathroom","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z","metadata":null,"synonyms":["bathroom","bathrooms","showers","toilets"]},{"value":"bedrooms","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z","metadata":null,"synonyms":["bedroom","bedrooms","beds"]},{"value":"price","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z","metadata":null,"synonyms":["cost","price","value"]}],"created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z","open_list":false,"description":null},{"type":null,"entity":"listing","source":null,"values":[{"value":"1003
199
+ Brothers Place","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z","metadata":null,"synonyms":["1003
200
+ brothers","1003 brothers place","brothers place duplex","brothers property","duplex
201
+ on brothers","property on brothers"]},{"value":"3520 Willow Street","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z","metadata":null,"synonyms":["3520
202
+ Willow","3520 willows road","House on Willows","house on willows road","Willow
203
+ Listing","Willows House","Willow Street House"]},{"value":"578 Main St","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z","metadata":null,"synonyms":["578
204
+ Main","condo on main","main st condo","place on main"]}],"created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z","open_list":false,"description":null},{"type":null,"entity":"numeric-filter","source":null,"values":[{"value":"between","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z","metadata":null,"synonyms":["between","inbetween","less
205
+ than and greater than"]},{"value":"over","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z","metadata":null,"synonyms":["above","more
206
+ than","over","starting at"]},{"value":"under","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z","metadata":null,"synonyms":["below","less
207
+ than","under"]}],"created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z","open_list":false,"description":null},{"type":null,"entity":"property-type","source":null,"values":[{"value":"apartment","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z","metadata":null,"synonyms":["apartment","apartments"]},{"value":"condo","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z","metadata":null,"synonyms":["condo","condos"]},{"value":"duplex","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z","metadata":null,"synonyms":["duplex"]},{"value":"home","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z","metadata":null,"synonyms":["home","homes","house"]},{"value":"property","created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z","metadata":null,"synonyms":["property"]}],"created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z","open_list":false,"description":null},{"type":null,"entity":"sys-currency","source":"system.entities","values":[],"created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z","open_list":false,"description":null},{"type":null,"entity":"sys-number","source":"system.entities","values":[],"created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z","open_list":false,"description":null}],"language":"en","metadata":null,"description":"Realtor
208
+ bot that uses the Watson Conversation Service","dialog_nodes":[{"go_to":null,"output":{},"parent":null,"context":null,"created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z","metadata":null,"conditions":"#ask_who_i_am","description":null,"dialog_node":"Ask
209
+ who I am","previous_sibling":"Talk to my boss"},{"go_to":null,"output":{},"parent":null,"context":null,"created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z","metadata":null,"conditions":"#enquire_about_homes","description":null,"dialog_node":"Ask
210
+ about homes","previous_sibling":"Switch listings"},{"go_to":null,"output":{},"parent":null,"context":null,"created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z","metadata":null,"conditions":"#express_delight","description":null,"dialog_node":"Tell
211
+ me you are happy","previous_sibling":"Repeat the initial question"},{"go_to":null,"output":{},"parent":"Repeat
212
+ the initial question","context":{"initial_question":"none"},"created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z","metadata":null,"conditions":null,"description":null,"dialog_node":"Clear
213
+ initial question","previous_sibling":null},{"go_to":null,"output":{"action":"talk_to_my_boss"},"parent":null,"context":null,"created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z","metadata":null,"conditions":"#talk_to_my_boss","description":null,"dialog_node":"Talk
214
+ to my boss","previous_sibling":"Conversation Starts"},{"go_to":null,"output":{"boolean":{"template":"realtor/intro_question_two"}},"parent":"Introduce
215
+ the Bot","context":null,"created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z","metadata":null,"conditions":"#like_this","description":null,"dialog_node":"Like
216
+ that.","previous_sibling":null},{"go_to":null,"output":{"text":{"values":["I
217
+ didn''t quite understand that. You can say \"call my boss\" if you want to
218
+ talk to a human."],"selection_policy":"sequential"}},"parent":null,"context":null,"created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z","metadata":null,"conditions":"#confused","description":null,"dialog_node":"Say
219
+ you are confused","previous_sibling":"Ask about homes"},{"go_to":null,"output":{"text":{"values":["I
220
+ don''t have an answer for that right now."],"selection_policy":"sequential"}},"parent":null,"context":null,"created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z","metadata":null,"conditions":"#known_unknown","description":null,"dialog_node":"Cannot
221
+ answer","previous_sibling":"Ask how I am"},{"go_to":null,"output":{"text":{"values":["I
222
+ don''t think I understood what you''re asking for."],"selection_policy":"sequential"}},"parent":null,"context":null,"created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z","metadata":null,"conditions":"true","description":null,"dialog_node":"Fallback","previous_sibling":"Cannot
223
+ answer"},{"go_to":null,"output":{"text":{"values":["It is zone B."],"selection_policy":"sequential"}},"parent":"Asks
224
+ a property question","context":null,"created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z","metadata":null,"conditions":"#ask_zoning","description":null,"dialog_node":"Answer
225
+ zoning","previous_sibling":"Answer price"},{"go_to":null,"output":{"text":{"values":["Oh
226
+ sorry, photos are coming soon!"],"selection_policy":"sequential"}},"parent":"Asks
227
+ a property question","context":null,"created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z","metadata":null,"conditions":"#ask_photos","description":null,"dialog_node":"Answer
228
+ photos","previous_sibling":"Figure out the property"},{"go_to":null,"output":{"text":{"values":["Okay,
229
+ which property would you like to know about? You can say \"the house on willows\",
230
+ for example."],"selection_policy":"sequential"}},"parent":"Asks a property
231
+ question","context":null,"created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z","metadata":null,"conditions":"$listing
232
+ == ''none''","description":null,"dialog_node":"Figure out the property","previous_sibling":null},{"go_to":null,"output":{"text":{"values":["One
233
+ million CAD."],"selection_policy":"sequential"}},"parent":"Asks a property
234
+ question","context":null,"created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z","metadata":null,"conditions":"#ask_the_price","description":null,"dialog_node":"Answer
235
+ price","previous_sibling":"Answer photos"},{"go_to":null,"output":{"text":{"values":["Yes
236
+ you can have pets and there are no restrictions."],"selection_policy":"sequential"}},"parent":"Asks
237
+ a property question","context":null,"created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z","metadata":null,"conditions":"#ask_pets","description":null,"dialog_node":"Answer
238
+ pets","previous_sibling":"Answer zoning"},{"go_to":null,"output":{"text":{"values":["Hello
239
+ there!","Hi!"],"selection_policy":"random"}},"parent":null,"context":null,"created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z","metadata":null,"conditions":"#greeting","description":null,"dialog_node":"Say
240
+ hello","previous_sibling":"Tell me everything is okay"},{"go_to":null,"output":{"text":{"values":["I''m
241
+ well.","Doing just fine.","Things are good."],"selection_policy":"random"}},"parent":null,"context":null,"created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z","metadata":null,"conditions":"#how_are_you","description":null,"dialog_node":"Ask
242
+ how I am","previous_sibling":"Say hello"},{"go_to":null,"output":{"text":{"values":["Sure.
243
+ Sounds good.","Okay. No problem.","Glad to hear it."],"selection_policy":"random"}},"parent":null,"context":null,"created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z","metadata":null,"conditions":"#no_problem","description":null,"dialog_node":"Tell
244
+ me everything is okay","previous_sibling":"Asks a property question"},{"go_to":null,"output":{"choices":{"choices":[{"body":"Like
245
+ this?"}],"template":"realtor/intro_question_one"},"template":"realtor/intro"},"parent":null,"context":{"introduced":true,"initial_question":"\u003c?input.text?\u003e"},"created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z","metadata":null,"conditions":"$introduced
246
+ == false","description":null,"dialog_node":"Introduce the Bot","previous_sibling":"Ask
247
+ who I am"},{"go_to":{"return":null,"selector":"body","dialog_node":"Clear
248
+ initial question"},"output":{"text":{"values":["Sure! You asked ''$initial_question'',
249
+ answering that now...."],"selection_policy":"sequential"},"repeat_input":"$initial_question"},"parent":null,"context":null,"created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z","metadata":null,"conditions":"$initial_question
250
+ != ''none''","description":null,"dialog_node":"Repeat the initial question","previous_sibling":"Introduce
251
+ the Bot"},{"go_to":{"return":null,"selector":"body","dialog_node":"Figure
252
+ out the property"},"output":{"text":{"values":[""],"selection_policy":"sequential"}},"parent":null,"context":{"listing":"none"},"created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z","metadata":null,"conditions":"#switch_listings","description":null,"dialog_node":"Switch
253
+ listings","previous_sibling":"Tell me you are happy"},{"go_to":{"return":null,"selector":"condition","dialog_node":"Asks
254
+ a property question"},"output":{"text":{"values":["Great! Yes I know about
255
+ @listing."],"selection_policy":"sequential"}},"parent":null,"context":{"listing":"@listing"},"created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z","metadata":null,"conditions":"@listing
256
+ || #ask_about_property","description":null,"dialog_node":"Mentions a property","previous_sibling":"Say
257
+ you are confused"},{"go_to":{"return":null,"selector":"condition","dialog_node":"Figure
258
+ out the property"},"output":{},"parent":null,"context":null,"created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z","metadata":null,"conditions":"#ask_photos
259
+ || #ask_the_price || #ask_zoning || #ask_pets","description":null,"dialog_node":"Asks
260
+ a property question","previous_sibling":"Mentions a property"},{"go_to":{"return":null,"selector":"condition","dialog_node":"Repeat
261
+ the initial question"},"output":{},"parent":"Like that.","context":null,"created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z","metadata":null,"conditions":"#thumbs_up","description":null,"dialog_node":"Thumbs
262
+ Up","previous_sibling":null},{"go_to":{"return":null,"selector":"condition","dialog_node":"Repeat
263
+ the initial question"},"output":{"text":{"values":[":frown: Sorry you don''t
264
+ approve. I''m ready for your questions now."],"selection_policy":"sequential"}},"parent":"Like
265
+ that.","context":null,"created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z","metadata":null,"conditions":"#thumbs_down","description":null,"dialog_node":"Thumbs
266
+ Down","previous_sibling":"Thumbs Up"},{"go_to":{"return":null,"selector":"condition","dialog_node":"Talk
267
+ to my boss"},"output":{"message_template":"realtor/intro"},"parent":null,"context":{"listing":"none","introduced":false,"initial_question":"\u003c?input.text?\u003e"},"created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z","metadata":null,"conditions":"conversation_start","description":null,"dialog_node":"Conversation
268
+ Starts","previous_sibling":null},{"go_to":{"return":null,"selector":"condition","dialog_node":"Talk
269
+ to my boss"},"output":{"text":{"values":[],"selection_policy":"sequential"}},"parent":"Introduce
270
+ the Bot","context":null,"created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z","metadata":null,"conditions":"#talk_to_my_boss","description":null,"dialog_node":"Talk
271
+ to boss","previous_sibling":"Like that."},{"go_to":{"return":null,"selector":"user_input","dialog_node":"Like
272
+ that."},"output":{"choices":{"text":"I''m not sure what to do here. Can you
273
+ help me get unstuck by tapping the response below?","choices":[{"body":"Like
274
+ this?"}]}},"parent":"Introduce the Bot","context":null,"created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z","metadata":null,"conditions":"true
275
+ || #confused","description":null,"dialog_node":"Else","previous_sibling":"Talk
276
+ to boss"},{"go_to":{"return":null,"selector":"user_input","dialog_node":"Thumbs
277
+ Up"},"output":{"text":{"values":["Oh, I''m not too sure about that. Just give
278
+ me a :+1: or :-1: to let me know whether you approve or not."],"selection_policy":"sequential"}},"parent":"Like
279
+ that.","context":null,"created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z","metadata":null,"conditions":"true
280
+ || #confused","description":null,"dialog_node":"node_1_1489017858351","previous_sibling":"Thumbs
281
+ Down"},{"type":"response_condition","go_to":null,"output":{"action":"filter_properties"},"parent":"Ask
282
+ about homes","context":null,"created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z","metadata":null,"conditions":null,"description":null,"dialog_node":"node_5_1489443715571","previous_sibling":"node_11_1489424404852"},{"type":"response_condition","go_to":null,"output":{"text":{"values":["Great!
283
+ I''m ready for your realty questions now."],"selection_policy":"sequential"}},"parent":"Thumbs
284
+ Up","context":null,"created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z","metadata":null,"conditions":"","description":null,"dialog_node":"node_4_1489422975792","previous_sibling":null},{"type":"response_condition","go_to":null,"output":{"text":{"values":["I
285
+ am {{bot.name}}."],"selection_policy":"sequential"}},"parent":"Ask who I am","context":null,"created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z","metadata":null,"conditions":"","description":null,"dialog_node":"node_1_1488314813965","previous_sibling":null},{"type":"response_condition","go_to":null,"output":{"text":{"values":["I
286
+ don''t have any condos for sale."],"selection_policy":"sequential"}},"parent":"Ask
287
+ about homes","context":null,"created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z","metadata":null,"conditions":"
288
+ @property-type:condo","description":null,"dialog_node":"node_8_1489424344276","previous_sibling":"node_7_1489424322746"},{"type":"response_condition","go_to":null,"output":{"text":{"values":["I
289
+ have two properties for sale. 3520 Willows Road and 1003 Brothers Place."],"selection_policy":"sequential"}},"parent":"Ask
290
+ about homes","context":null,"created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z","metadata":null,"conditions":null,"description":null,"dialog_node":"node_11_1489424404852","previous_sibling":"node_12_1489425270434"},{"type":"response_condition","go_to":null,"output":{"text":{"values":["I
291
+ understand you want me to find a home that can have pets, but I can''t do
292
+ that right now."],"selection_policy":"sequential"}},"parent":"Ask about homes","context":null,"created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z","metadata":null,"conditions":"
293
+ @amenities:pets","description":null,"dialog_node":"node_12_1489425270434","previous_sibling":"node_10_1489424380168"},{"type":"response_condition","go_to":null,"output":{"text":{"values":["Oh
294
+ sorry, I don''t have any apartments."],"selection_policy":"sequential"}},"parent":"Ask
295
+ about homes","context":null,"created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z","metadata":null,"conditions":"
296
+ @property-type:apartment","description":null,"dialog_node":"node_7_1489424322746","previous_sibling":null},{"type":"response_condition","go_to":null,"output":{"text":{"values":["Okay,
297
+ I''ll search for @property-type less than than @sys-number for you. Might
298
+ be a few minutes."],"selection_policy":"sequential"}},"parent":"Ask about
299
+ homes","context":null,"created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z","metadata":null,"conditions":"@property-type:home
300
+ \u0026\u0026 @under-filter:under \u0026\u0026 @sys-number","description":null,"dialog_node":"node_4_1489443566378","previous_sibling":"node_8_1489424344276"},{"type":"response_condition","go_to":null,"output":{"text":{"values":["The
301
+ home I have for sale is 3520 willows road."],"selection_policy":"sequential"}},"parent":"Ask
302
+ about homes","context":null,"created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z","metadata":null,"conditions":"
303
+ @property-type:home","description":null,"dialog_node":"node_9_1489424359166","previous_sibling":"node_4_1489443566378"},{"type":"response_condition","go_to":null,"output":{"text":{"values":["Yes,
304
+ I have 1003 Brothers Place for sale."],"selection_policy":"sequential"}},"parent":"Ask
305
+ about homes","context":null,"created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z","metadata":null,"conditions":"@property-type:duplex","description":null,"dialog_node":"node_10_1489424380168","previous_sibling":"node_9_1489424359166"},{"type":"response_condition","go_to":null,"output":{"text":{"values":["Glad
306
+ you like.","I''m happy that you''re happy!",":smile:"],"selection_policy":"random"}},"parent":"Tell
307
+ me you are happy","context":null,"created":"2017-03-25T00:48:38.808Z","updated":"2017-03-25T00:48:38.808Z","metadata":null,"conditions":"","description":null,"dialog_node":"node_3_1487714591359","previous_sibling":null}],"workspace_id":"80738bb6-bc71-433a-b0b4-88f15ee01b3b","counterexamples":[]}'
308
+ headers:
309
+ Accept:
310
+ - application/json
311
+ Connection:
312
+ - close
313
+ Content-Type:
314
+ - application/json; charset=UTF-8
315
+ Host:
316
+ - gateway.watsonplatform.net
317
+ User-Agent:
318
+ - http.rb/2.2.1
319
+ response:
320
+ status:
321
+ code: 200
322
+ message: OK
323
+ headers:
324
+ X-Backside-Transport:
325
+ - OK OK
326
+ Connection:
327
+ - close
328
+ Transfer-Encoding:
329
+ - chunked
330
+ X-Content-Type-Options:
331
+ - nosniff
332
+ X-Download-Options:
333
+ - noopen
334
+ X-Ratelimit-Reset:
335
+ - '1490668366'
336
+ Date:
337
+ - Tue, 28 Mar 2017 02:14:55 GMT
338
+ X-Frame-Options:
339
+ - SAMEORIGIN
340
+ Strict-Transport-Security:
341
+ - max-age=31536000;
342
+ X-Ratelimit-Remaining:
343
+ - '21'
344
+ Etag:
345
+ - '1490667295052'
346
+ X-Dns-Prefetch-Control:
347
+ - 'off'
348
+ Vary:
349
+ - Accept-Encoding
350
+ X-Ratelimit-Limit:
351
+ - '30'
352
+ X-Xss-Protection:
353
+ - 1; mode=block
354
+ Content-Type:
355
+ - application/json;charset=utf-8
356
+ Server:
357
+ - "-"
358
+ Set-Cookie:
359
+ - Watson-DPAT=DPwD8S5hKEtBQ4tNMDn8kAKPLuTWg9nfAbPeo0ebnOsHqYSTlskbpQdccnCBmJlEpWDWpmRvnl3mIg1YSEt1Wb2lQarlfZCAPyYLv%2Fk%2BSY4jPwlrF3PvaTAX4zAIJmOJnnBtnH7vzOCdAcqkPLytpw7o3iEzcWIfZy%2FYo7P%2BMMmqyeH5j8vC7rlSdwMkxRk3dBWytLD69qbRzOyMwbGYbNRsCWy7HiZvJ2UpNFuM1KkHklBkOjTcF3rNv4%2FL%2Fz0%2FeutNDMnDLizaSRM3TWhorJzV4ugm%2Fnpzm48txngzvv0n54DvQX8fCB7mZxWl4EfKSMN%2BOxFDe6tVLt006sUOs7Yketl9Vae%2FnagdTykrch1Txqiahuq05dN3AlQvKFVpefwhzbDtZ%2B98ADtOL%2FyXkmIWMRS7mtY%2FoNI9GiBoDqUuUg5Q8ZQ5hWsRwuyHVIf%2FuBrzKNjlGyYnV8bfDJ2lSInXXFylYVbd5vr1jXnjLcIyeXhx4BADUNEyKiYJiVIDEGBtPxwQCFZTM1Xpu3AGPtNKZ5u59NX3HjBoCm9O99S9jIGScXrUuHSl%2Bh03tjOkLeVBnKeA4XTvJkbOjT%2BB2Oqja7xoBIdcpljUf8hIBWV0pqcAM5D679U5e3vPmb1K3aroQl7QS1qxmdWjO4%2Bq3c6Bf5%2FG3TMf0BJS2xzdZE1huPPVZGSPPFymfzhSPOAMQOKL1nhkFBBr2b0MON0oPO%2FyGsnZZ%2BQFAgG1UvqrUG%2ByMLQEe77%2B0NuyeSc1VCdwb5uvO1IVsazPMDGWnRdkr8AO3ZO4teUQUq9pF7d244%2BLtOrEZiRqUZJ9UYTkDdg%2FdeeynHEeKseFelBrsGqWUSMZ%2Bt%2Fv%2FQQpHNFUsX2iz8%2FSvIp8HmFnS9EzzgMUsG3PYvTkoObggl9qsVEVqthwklrtLVHVVJqHgEDCplnm%2FC1m7RpqzE0lK%2Fdqc7haQTI%2FmRZNfzMQkC4%3D;
360
+ path=/conversation/api; secure; HttpOnly
361
+ X-Client-Ip:
362
+ - 50.67.27.28
363
+ X-Global-Transaction-Id:
364
+ - '2555285784'
365
+ X-Dp-Watson-Tran-Id:
366
+ - gateway-dp02-2555285784
367
+ body:
368
+ encoding: UTF-8
369
+ string: '{"name":"POC","created":"2017-03-28T01:55:38.152Z","updated":"2017-03-28T02:14:55.052Z","language":"en","metadata":null,"description":"Realtor
370
+ bot that uses the Watson Conversation Service","workspace_id":"c6f27505-bc6c-4914-bd8d-b570d8ff2720"}'
371
+ http_version:
372
+ recorded_at: Tue, 28 Mar 2017 02:14:55 GMT
373
+ - request:
374
+ method: post
375
+ uri: https://gateway.watsonplatform.net/conversation/api/v1/workspaces/c6f27505-bc6c-4914-bd8d-b570d8ff2720/message?version=2017-02-03
6
376
  body:
7
377
  encoding: UTF-8
8
378
  string: '{"input":{"text":"Awesome!"},"context":{"conversation_id":"b90a141a-14b0-48b5-aad3-f53454e93444"},"alternate_intents":false}'
@@ -13,6 +383,8 @@ http_interactions:
13
383
  - close
14
384
  Content-Type:
15
385
  - application/json; charset=UTF-8
386
+ Host:
387
+ - gateway.watsonplatform.net
16
388
  User-Agent:
17
389
  - http.rb/2.2.1
18
390
  response:
@@ -43,20 +415,20 @@ http_interactions:
43
415
  X-Xss-Protection:
44
416
  - 1; mode=block
45
417
  Date:
46
- - Fri, 24 Mar 2017 21:27:30 GMT
418
+ - Tue, 28 Mar 2017 02:14:55 GMT
47
419
  Content-Type:
48
420
  - application/json;charset=utf-8
49
421
  Server:
50
422
  - "-"
51
423
  Set-Cookie:
52
- - Watson-DPAT=cQjP8Hhai7fVvvo3p88mtVwD%2BWkQ8iQ2HwjNXwmOlS%2F7HtwHilr75hdCm95SCPA7Qh4z2SfnTUWd68JaznIVW1cM%2FCTjmlpyRYz2%2FGQjDJnp6WA%2BJiXjHr5nK5F5VBkhcKFQyQHjIj0cbBJ%2FN1TLfuFChbnmN44lO7eMHL%2B4ijyVdz2K4BmatnSk%2BPkjGYT6O6FNVtCCfmx7Fcneax%2FvgqH0TkPBbujguyk8KfvPDG%2B2%2F6ZhzD8J5tfx1%2Bdr%2BlGpESDTY2kARxBKn8%2B8RgsvwuYm6ufNt1HiV3s8k6rxS6hyJ2udUYY9aIYMB4kJwyOwwlz%2Fq4TGDLjRnHcnaQcQf5rs2weqnNagfDfdELDdnD6i7NKY0TukYU%2FxGExKfAXuLUN3QlFtOY3f%2Bj42s6Ery%2FyJqJlSbuA8F5xkEcFl3BvmUDTf8h50OB%2FKsrpdN82FlZQlaNSlbVx7sChfPhYIwFBoJ%2BdCij4aa6PrPlyRScAXW7CKM6GfG8dthPfA2Mq3yVPkroCKRCkCdmrIDVhHWb0qYhjIWjD6tBjNBAER8Wgn6PIuOJ%2Fxur2laagiuMOr5GBJjKnJhMWDpz5%2BFMvOh%2B1O0sfiO6M%2F6zD%2FzFdjptQEHVluNjWXYu4JVLfG2OwqoBzo8%2FsmQ34%2ByRHlqr2A6fpoX8kPFrowYk0PVxIL6xRfhAfZJVhGLhQ20sqmNTaZlv8W2mQ6DwtvS3aNKAsYTMMWPtAo8idQKbDh0AhpllWw0YifkLFh9kJMdpaGOEFA5rtqR8tzGHSrxTLkhUe2kb96IhTy%2FaUra3lqAq5jZohjuyJ9tHgXMOlX8FznREdEnuLzE28GJ4RaORvf64g10f22hlSApWoCfIJTxxaXDSv1IJotL8jE4OodOS7563419uFZI5JMh0jeoXnQJytCnHjlbzLycLPs3a8lK%2BRjeD5ZWEqKtJJj%2BnMi97ueP7TlCwrVA%2Bfp%2FkJQekcS35e4XrqN3sFD3frg;
424
+ - Watson-DPAT=BdUS44brGTPEcP1GpLhab8EKWUbAPvIXWqgFUrXs7kh%2FX2T01W2Q%2FBoYau5gpiNjqRKj3XqOht4j35OM65vn%2ByR6Jf7cjeGXEAuxHA%2F2AxgwQdMxNUphO8Z1VDHnsqqlNVFsk02E%2Baeq53n24tHRt5EsMHYS7QIMQjLSoSUgt2x0XSnfILusmnSLfPGkEmVVZ9p%2BHSKTCmd03e3H4akmuNVTpb50lDn0ELFQ3NHjZSPA3D7FkQ1HMqV6vmfhFe3wkvcyjyLVFMHCbwEVyRFD8ILzfXCnBv8CEnNCtTNGUg6YRxu%2BqzaQ%2Fm15QEkw%2BGIksnL6jcxgWV0walyT4l7AJPCuRMgvhOoj6ss4s3dkDkOVZ1P3itnpHNMfePxlLxXweigBvS1hyxdog%2FpxK04mp8GYsgiwZ1No2kc%2B4EWcBq7LuZp0IdJJOODQ5wZVD94v9ZgR%2FWeO4l47%2B5b1X6TCd2foCjbT498QRxC%2FENISaUJOAbPioppPumILXCWBvhwdbs9UwzNpgOw2axoVAiDbnebu2C%2FC0F7sNZn3phWfWYSKgazcxvc14gSlYB7cYLHaGtfVKimSKz3bO88mLSIm%2FIu%2BLyV6eYfqlbinM5rAkrO8In0udo2Rlwa1jGDUUr1wlzo9GWE7baXecTo5QZVHb7tZ3gL1LBbli5IHpXoL3PCuyumTq1RtT698LuRQd%2FWQ18nIrsKUPQyE7I4aKjdsUakGHS08FDi1%2FdmNAy9Cw1UYgFVje7Roi%2F%2FtSRiH76hKDayfem9my5koiVfzXZsZ6xbku0eJzzJBOPfoiqnsXyKgm4SycIDt%2BDYA9T%2B%2FbjlUk1O45awFnfvCjm0ffEjlJsGFdK7HbiTLZcQkfuoZshU3yFzQQ8wEnMyzU0%2BYOVjTjg6W%2Bpfc4n%2BSKVJ5Rk6jbk1HD4GlBA6mUe%2BJXMX4FjFoJOFIGI3iWDFI1YyJJtyQGqLZOGoNR0WKhZbg7OE9AQ%3D%3D;
53
425
  path=/conversation/api; secure; HttpOnly
54
426
  X-Client-Ip:
55
- - 172.218.196.173
427
+ - 50.67.27.28
56
428
  X-Global-Transaction-Id:
57
- - '2716371020'
429
+ - '2538010776'
58
430
  X-Dp-Watson-Tran-Id:
59
- - gateway-dp02-2716371020
431
+ - gateway-dp01-2538010776
60
432
  body:
61
433
  encoding: UTF-8
62
434
  string: '{"intents":[{"intent":"express_delight","confidence":0.99}],"entities":[],"input":{"text":"Awesome!"},"output":{"log_messages":[],"text":[],"nodes_visited":["Conversation
@@ -64,5 +436,5 @@ http_interactions:
64
436
  this?"}],"template":"realtor/intro_question_one"},"template":"realtor/intro"},"context":{"conversation_id":"b90a141a-14b0-48b5-aad3-f53454e93444","system":{"dialog_stack":[{"dialog_node":"Introduce
65
437
  the Bot"}],"dialog_turn_counter":1,"dialog_request_counter":1},"listing":"none","introduced":true,"initial_question":"Awesome!"},"alternate_intents":false}'
66
438
  http_version:
67
- recorded_at: Fri, 24 Mar 2017 21:27:30 GMT
439
+ recorded_at: Tue, 28 Mar 2017 02:14:55 GMT
68
440
  recorded_with: VCR 3.0.3