ibm-watson-ruby 0.0.1 → 0.0.2

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 987b93d5b8b4632720831f78dc5ecbe016633648
4
- data.tar.gz: f499c7861a98ab27974a30b53888b5dc7dcd7998
3
+ metadata.gz: ab996eaea3f1df5b531c786c4b85b2f1575a09cf
4
+ data.tar.gz: 76ee53e5277ba39a022884c4d3b4d399ce1ebab6
5
5
  SHA512:
6
- metadata.gz: 7fcac6af6ef7871ba2845434a06111c0b6c8e6456558786cf583bdbfbb71ad9bdf431ab83d1757654b79c56992ddf4869a506f95359a33f4597159e7ffaf030b
7
- data.tar.gz: 759a838669ecec44667e05258f6c50a1547cb4b42ae02313a8ebece7ba8fa7c6a6f9a800b8641f9d86882e8d4e5cdaa6d7f920c5db4d0b7fb29763e938d17a53
6
+ metadata.gz: ecc4da4c0d5616d0446b6d204d2e1d1aa210b5aa23fc9d5ad7c5ba3f121097d9e95e81b2e5df6885be705f492c4895daf93e9355e4978d0d02ebc5a1748fcaa1
7
+ data.tar.gz: 8f441294399cb2a24b021b7f147970ecc3edf17f4057253eede88c2a5a943d27e73e98f06638579444bb2587664bc392d9313c086011f440a63856599d573963
data/Gemfile CHANGED
@@ -1,6 +1,15 @@
1
1
  source 'https://rubygems.org'
2
+ ruby "~> 2.3.0"
2
3
 
3
4
  gemspec
4
5
 
5
6
  gem 'http'
6
7
  gem 'active_attr'
8
+ gem 'active_attr_extended'
9
+
10
+ group :test, :development do
11
+ gem 'dotenv'
12
+ gem 'rspec'
13
+ gem 'rspec-middlewares'
14
+ gem 'vcr'
15
+ end
@@ -1,8 +1,9 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ibm-watson-ruby (0.0.1)
4
+ ibm-watson-ruby (0.0.2)
5
5
  active_attr (~> 0.10)
6
+ active_attr_extended (~> 0.9)
6
7
  http (~> 2.0)
7
8
 
8
9
  GEM
@@ -11,6 +12,8 @@ GEM
11
12
  active_attr (0.10.0)
12
13
  activemodel (>= 3.0.2, < 5.1)
13
14
  activesupport (>= 3.0.2, < 5.1)
15
+ active_attr_extended (0.9.0.1)
16
+ active_attr (>= 0.6.0)
14
17
  activemodel (4.2.8)
15
18
  activesupport (= 4.2.8)
16
19
  builder (~> 3.1)
@@ -25,6 +28,7 @@ GEM
25
28
  diff-lcs (1.3)
26
29
  domain_name (0.5.20170223)
27
30
  unf (>= 0.0.5, < 1.0.0)
31
+ dotenv (2.2.0)
28
32
  http (2.2.1)
29
33
  addressable (~> 2.3)
30
34
  http-cookie (~> 1.0)
@@ -47,6 +51,8 @@ GEM
47
51
  rspec-expectations (3.5.0)
48
52
  diff-lcs (>= 1.2.0, < 2.0)
49
53
  rspec-support (~> 3.5.0)
54
+ rspec-middlewares (0.0.1)
55
+ rspec (~> 3.0)
50
56
  rspec-mocks (3.5.0)
51
57
  diff-lcs (>= 1.2.0, < 2.0)
52
58
  rspec-support (~> 3.5.0)
@@ -58,18 +64,26 @@ GEM
58
64
  unf (0.1.4)
59
65
  unf_ext
60
66
  unf_ext (0.0.7.2)
67
+ vcr (3.0.3)
61
68
 
62
69
  PLATFORMS
63
70
  ruby
64
71
 
65
72
  DEPENDENCIES
66
73
  active_attr
74
+ active_attr_extended
67
75
  bundler (~> 1.0)
76
+ dotenv
68
77
  http
69
78
  ibm-watson-ruby!
70
79
  rake (~> 0.8)
71
- rspec (~> 3.3)
80
+ rspec
81
+ rspec-middlewares
72
82
  rubygems-tasks (~> 0.2)
83
+ vcr
84
+
85
+ RUBY VERSION
86
+ ruby 2.3.3p222
73
87
 
74
88
  BUNDLED WITH
75
89
  1.14.4
@@ -20,9 +20,12 @@ Gem::Specification.new do |gem|
20
20
 
21
21
  gem.add_dependency "http", "~> 2.0"
22
22
  gem.add_dependency "active_attr", '~> 0.10'
23
+ gem.add_dependency "active_attr_extended", "~> 0.9"
23
24
 
24
25
  gem.add_development_dependency 'bundler', '~> 1.0'
25
26
  gem.add_development_dependency 'rake', '~> 0.8'
26
27
  gem.add_development_dependency 'rspec', '~> 3.3'
27
28
  gem.add_development_dependency 'rubygems-tasks', '~> 0.2'
29
+ gem.add_development_dependency 'rspec-middlewares'
30
+ gem.add_development_dependency 'vcr'
28
31
  end
@@ -1,7 +1,8 @@
1
1
  require 'active_attr'
2
+ require 'active_attr_extended'
2
3
 
3
4
  require 'ibm_watson/version'
4
5
  require 'ibm_watson/base_model'
6
+ require 'ibm_watson/base_service'
5
7
  require 'ibm_watson/errors'
6
8
  require 'ibm_watson/conversation'
7
- require 'ibm_watson/base_service'
@@ -3,11 +3,9 @@ module IBMWatson
3
3
  end
4
4
  end
5
5
 
6
- require 'conversation/service'
7
- require 'conversation/context'
8
- require 'conversation/intent_result'
9
- require 'conversation/output_result'
10
- require 'conversation/result'
11
- require 'conversation/workspace'
12
- require 'conversation/intent'
13
- require 'conversation/dialog_node'
6
+ require_relative 'conversation/service'
7
+ require_relative 'conversation/intent_result'
8
+ require_relative 'conversation/result'
9
+ require_relative 'conversation/intent'
10
+ require_relative 'conversation/dialog_node'
11
+ require_relative 'conversation/workspace'
@@ -1,3 +1,3 @@
1
1
  module IBMWatson
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
@@ -0,0 +1,45 @@
1
+ require 'spec_helper'
2
+ require 'ibm_watson'
3
+
4
+ describe IBMWatson::Conversation::Service, record: :none do
5
+ subject(:service) { described_class.new(username: username, password: password) }
6
+ let(:username) { ENV['IBM_WATSON_CONVERSATION_USERNAME'] }
7
+ let(:password) { ENV['IBM_WATSON_CONVERSATION_PASSWORD'] }
8
+ let(:workspace_id) { ENV['IBM_WATSON_WORKSPACE_ID'] }
9
+ subject(:service) do
10
+ described_class.new(username: username, password: password)
11
+ end
12
+
13
+ describe "#message" do
14
+ let(:expected_intents) { [{ "intent" => "express_delight", "confidence" => 0.99 }] }
15
+ let(:expected_context_json) { { "conversation_id" => "b90a141a-14b0-48b5-aad3-f53454e93444",
16
+ "system" => { "dialog_stack" => [{ "dialog_node" => "Introduce the Bot" }],
17
+ "dialog_turn_counter" => 1, "dialog_request_counter" => 1 },
18
+ "listing" => "none", "introduced" => true, "initial_question" => "Awesome!" } }
19
+ let(:expected_output_json) { {"log_messages"=>[], "text"=>[], "nodes_visited"=>["Conversation Starts", "Introduce the Bot"], "message_template"=>"realtor/intro",
20
+ "choices"=>{"choices"=>[{"body"=>"Like this?"}], "template"=>"realtor/intro_question_one"}, "template"=>"realtor/intro"} }
21
+ let(:conversation_id) { "b90a141a-14b0-48b5-aad3-f53454e93444" }
22
+ let(:context) {
23
+ { conversation_id: conversation_id }
24
+ }
25
+
26
+
27
+ example do
28
+ result = subject.message(workspace_id: workspace_id, input: "Awesome!", context: context)
29
+ expect(result.intents.first).to be_a_kind_of(IBMWatson::Conversation::IntentResult)
30
+ expect(result.intents.as_json).to eq expected_intents
31
+ expect(result.context).to be_a_kind_of(Hash)
32
+ expect(result.context.as_json).to eq(expected_context_json)
33
+ expect(result.output).to be_a_kind_of(Hash)
34
+ expect(result.output.as_json).to eq(expected_output_json)
35
+ end
36
+ end
37
+
38
+ describe "#workspace", record: :all do
39
+ example do
40
+ result = subject.workspace(workspace_id: workspace_id, export: true)
41
+ expect(result.intents.first).to be_a_kind_of(IBMWatson::Conversation::Intent)
42
+ expect(result.dialog_nodes.first).to be_a_kind_of(IBMWatson::Conversation::DialogNode)
43
+ end
44
+ end
45
+ end
@@ -0,0 +1,48 @@
1
+ require 'rspec'
2
+ require 'middleware'
3
+ require 'rspec-middlewares'
4
+ require 'vcr'
5
+ require 'dotenv/load'
6
+
7
+ RSpec.configure do |config|
8
+ config.around(:each) do |test|
9
+ stack = Middleware::Builder.new do |builder|
10
+ if test.metadata[:timezone].present?
11
+ builder.use RspecMiddlewares::Timezone, timezone: test.metadata[:timezone]
12
+ end
13
+
14
+ if test.metadata[:current_time].present?
15
+ builder.use RspecMiddlewares::Timecop, current_time: test.metadata[:current_time]
16
+ end
17
+
18
+ if test.metadata[:freeze_time].present?
19
+ builder.use RspecMiddlewares::Timecop, freeze_time: test.metadata[:freeze_time]
20
+ end
21
+
22
+ if test.metadata[:record].present?
23
+ builder.use RspecMiddlewares::VCR,
24
+ cassette_name: test.metadata[:cassette_name],
25
+ record: test.metadata[:record],
26
+ match_requests_on: test.metadata[:match_requests_on]
27
+ end
28
+ builder.use RspecMiddlewares::Sidekiq if test.metadata[:run_jobs]
29
+ builder.use RspecMiddlewares::Main
30
+ end
31
+
32
+ stack.call test: test
33
+ end
34
+ end
35
+
36
+ VCR.configure do |config|
37
+ config.cassette_library_dir = "spec/vcr_cassettes"
38
+ config.hook_into :webmock
39
+
40
+ config.before_record do |interaction|
41
+ interaction.request.headers.delete('Authorization')
42
+ end
43
+
44
+ if ENV["DEBUG_VCR"]
45
+ puts "Notice: VCR Debug mode enabled by DEBUG_VCR, see tmp/vcr-debug.log for the log."
46
+ config.debug_logger = File.open("tmp/vcr-debug.log", 'w')
47
+ end
48
+ end
@@ -0,0 +1,68 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://gateway.watsonplatform.net/conversation/api/v1/workspaces/9c9b5bb9-9841-4c08-a69b-1af8797c74c8/message?version=2017-02-03
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"input":{"text":"Awesome!"},"context":{"conversation_id":"b90a141a-14b0-48b5-aad3-f53454e93444"},"alternate_intents":false}'
9
+ headers:
10
+ Accept:
11
+ - application/json
12
+ Connection:
13
+ - close
14
+ Content-Type:
15
+ - application/json; charset=UTF-8
16
+ User-Agent:
17
+ - http.rb/2.2.1
18
+ response:
19
+ status:
20
+ code: 200
21
+ message: OK
22
+ headers:
23
+ X-Backside-Transport:
24
+ - OK OK
25
+ Connection:
26
+ - close
27
+ Transfer-Encoding:
28
+ - chunked
29
+ X-Frame-Options:
30
+ - SAMEORIGIN
31
+ Strict-Transport-Security:
32
+ - max-age=31536000;
33
+ Etag:
34
+ - W/"270-aEUO8JbfijdCNGILIcf66g"
35
+ X-Content-Type-Options:
36
+ - nosniff
37
+ X-Download-Options:
38
+ - noopen
39
+ X-Dns-Prefetch-Control:
40
+ - 'off'
41
+ Vary:
42
+ - Accept-Encoding
43
+ X-Xss-Protection:
44
+ - 1; mode=block
45
+ Date:
46
+ - Fri, 24 Mar 2017 21:27:30 GMT
47
+ Content-Type:
48
+ - application/json;charset=utf-8
49
+ Server:
50
+ - "-"
51
+ 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;
53
+ path=/conversation/api; secure; HttpOnly
54
+ X-Client-Ip:
55
+ - 172.218.196.173
56
+ X-Global-Transaction-Id:
57
+ - '2716371020'
58
+ X-Dp-Watson-Tran-Id:
59
+ - gateway-dp02-2716371020
60
+ body:
61
+ encoding: UTF-8
62
+ string: '{"intents":[{"intent":"express_delight","confidence":0.99}],"entities":[],"input":{"text":"Awesome!"},"output":{"log_messages":[],"text":[],"nodes_visited":["Conversation
63
+ Starts","Introduce the Bot"],"message_template":"realtor/intro","choices":{"choices":[{"body":"Like
64
+ this?"}],"template":"realtor/intro_question_one"},"template":"realtor/intro"},"context":{"conversation_id":"b90a141a-14b0-48b5-aad3-f53454e93444","system":{"dialog_stack":[{"dialog_node":"Introduce
65
+ the Bot"}],"dialog_turn_counter":1,"dialog_request_counter":1},"listing":"none","introduced":true,"initial_question":"Awesome!"},"alternate_intents":false}'
66
+ http_version:
67
+ recorded_at: Fri, 24 Mar 2017 21:27:30 GMT
68
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,368 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://gateway.watsonplatform.net/conversation/api/v1/workspaces/9c9b5bb9-9841-4c08-a69b-1af8797c74c8?export=true&version=2017-02-03
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept:
11
+ - application/json
12
+ Connection:
13
+ - close
14
+ User-Agent:
15
+ - http.rb/2.2.1
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ X-Backside-Transport:
22
+ - OK OK
23
+ Connection:
24
+ - close
25
+ Transfer-Encoding:
26
+ - chunked
27
+ X-Content-Type-Options:
28
+ - nosniff
29
+ X-Download-Options:
30
+ - noopen
31
+ X-Ratelimit-Reset:
32
+ - '1490406670'
33
+ Date:
34
+ - Sat, 25 Mar 2017 01:21:09 GMT
35
+ X-Frame-Options:
36
+ - SAMEORIGIN
37
+ Strict-Transport-Security:
38
+ - max-age=31536000;
39
+ X-Ratelimit-Remaining:
40
+ - '19'
41
+ Etag:
42
+ - '1490143389589'
43
+ X-Dns-Prefetch-Control:
44
+ - 'off'
45
+ Vary:
46
+ - Accept-Encoding
47
+ X-Ratelimit-Limit:
48
+ - '20'
49
+ X-Xss-Protection:
50
+ - 1; mode=block
51
+ Content-Type:
52
+ - application/json;charset=utf-8
53
+ Server:
54
+ - "-"
55
+ Set-Cookie:
56
+ - Watson-DPAT=Y9C3Rm0mL8Uz6%2F7NDIYfu8hYQJLc5cZX6OKUHRlpGiZ5%2FiYOoGyfha6QVOj0rEsOfyPnCJNtrn3cbnB5UkwDcaxRZ9pWCBzIaJAaZlWhf3ippybVuC3IjvzNEMhJRh93uZKaHSPde%2FiCeAMlznZMfxrfko2Bkuw1SmVRLI5kT7qZu2N%2FX7VNkNx%2FsFS12EcqBaa7XhD0q43xLoJHEbYnbg4rSJxL5rmTzS2OoNy%2BL03RGxFWP%2FcwdR%2F3n4GR%2BVjB0vN1dHyYN8CFNntzuj%2FsxFDcmZUx%2FILI530KdBgzwstUPpxqF%2BRFwLaFEneBT%2Fx5trspgmic4ZuiDmswGBPDVt%2F4RYpSovQ4wvFLap3xQhwTatv84b9kZ9%2BfIZdRxhruNEFc01Lkeak2nWI%2FwnX570Qplv2U07WImlc1hSZ9gwYJectwQ2e3XA563nMjn60HlPHmwHiAbOt5B010Pp7PX8sTPvVMYoi5bU29YjFfpoLjMvU29SWesJhiA7%2BRxkCNcvhE%2BVb4ZkgJ4ZkZKWkDKK4AM9E2CSmXbjlNK4T5bDOkkwNoP4uG05pUMUsDmO7iQTunHzq0noZP6MdrnsSQDmMK2aSX2vwSFj60sffm1x3L5FKWLZPSIRcoosg5tomB%2FaDs0P1nrj%2FCdiP6WMvssBler2JdVA4lWGta7tr2%2B%2BXmBoSi64q0bZWf1EpUj9nGGnZhGDGhyFCkpbpCtw1cfDPFCho9rheu9aRHCNklPgd0Rq%2FOKOioH%2BtKA%2BXG0Ho%2FiaTl9on%2FVCidXHvnXOLIgxPbjcUFYNFiLEmZ1hSM3V3DCQbxnS5JUbsrM7del%2BWlu3wATspanrnlxcs3Qjqvh86IrxDxGVzoPJAOIIx68FhGMYa8GsKICOnLo3Dd5fiEWneJ3IakvgLKs0x6XCET7enZrxV3gmdhU8NpC5ZsfPjk1Hi1zAA4m20MROkHdXLFxTq%2FXUqx4TGCX8gJRynES41kfOpXlnZH;
57
+ path=/conversation/api; secure; HttpOnly
58
+ X-Client-Ip:
59
+ - 172.218.196.173
60
+ X-Global-Transaction-Id:
61
+ - '2728709148'
62
+ X-Dp-Watson-Tran-Id:
63
+ - gateway-dp02-2728709148
64
+ body:
65
+ encoding: UTF-8
66
+ string: '{"name":"JennyBot - POC","created":"2017-02-21T20:46:17.891Z","intents":[{"intent":"ask_about_property","created":"2017-03-13T16:53:59.199Z","updated":"2017-03-13T16:55:13.409Z","examples":[{"text":"Can
67
+ I enquire about the home on willows road?","created":"2017-03-13T16:55:13.409Z","updated":"2017-03-13T16:55:13.409Z"},{"text":"Can
68
+ you tell me about the house on willows?","created":"2017-03-13T16:54:15.818Z","updated":"2017-03-13T16:54:15.818Z"},{"text":"What
69
+ do you know about 1003 brothers place?","created":"2017-03-13T16:54:34.241Z","updated":"2017-03-13T16:54:34.241Z"},{"text":"What
70
+ do you know about 3520 Willows Road?","created":"2017-03-13T16:54:54.605Z","updated":"2017-03-13T16:54:54.605Z"},{"text":"What
71
+ do you know about the place on drake street?","created":"2017-03-13T16:54:25.959Z","updated":"2017-03-13T16:54:25.959Z"}],"description":null},{"intent":"ask_mls_number","created":"2017-03-13T23:34:18.070Z","updated":"2017-03-13T23:34:18.070Z","examples":[{"text":"Does
72
+ it have an MLS number?","created":"2017-03-13T23:34:18.070Z","updated":"2017-03-13T23:34:18.070Z"},{"text":"I
73
+ am interested in the MLS number.","created":"2017-03-13T23:34:18.070Z","updated":"2017-03-13T23:34:18.070Z"},{"text":"mls?","created":"2017-03-13T23:34:18.070Z","updated":"2017-03-13T23:34:18.070Z"},{"text":"mls
74
+ number?","created":"2017-03-13T23:34:18.070Z","updated":"2017-03-13T23:34:18.070Z"},{"text":"What''s
75
+ the mls number?","created":"2017-03-13T23:34:18.070Z","updated":"2017-03-13T23:34:18.070Z"}],"description":null},{"intent":"ask_pets","created":"2017-03-13T19:58:00.785Z","updated":"2017-03-13T19:58:45.631Z","examples":[{"text":"Are
76
+ dogs allowed?","created":"2017-03-13T19:58:19.862Z","updated":"2017-03-13T19:58:19.862Z"},{"text":"Are
77
+ pets allowed?","created":"2017-03-13T19:58:15.529Z","updated":"2017-03-13T19:58:15.529Z"},{"text":"Are
78
+ there any animal restrictions?","created":"2017-03-13T19:58:45.631Z","updated":"2017-03-13T19:58:45.631Z"},{"text":"Can
79
+ I bring a pet?","created":"2017-03-13T19:58:28.573Z","updated":"2017-03-13T19:58:28.573Z"},{"text":"Can
80
+ I have a cat?","created":"2017-03-13T19:58:11.123Z","updated":"2017-03-13T19:58:11.123Z"},{"text":"I
81
+ have a dog, is that allowed?","created":"2017-03-13T19:58:36.958Z","updated":"2017-03-13T19:58:36.958Z"}],"description":null},{"intent":"ask_photos","created":"2017-03-09T04:43:11.095Z","updated":"2017-03-09T04:44:11.051Z","examples":[{"text":"Can
82
+ I see photos?","created":"2017-03-09T04:43:35.317Z","updated":"2017-03-09T04:43:35.317Z"},{"text":"Can
83
+ I see photos of the house on willows road?","created":"2017-03-09T04:43:52.415Z","updated":"2017-03-09T04:43:52.415Z"},{"text":"Do
84
+ you have pictures?","created":"2017-03-09T04:43:41.515Z","updated":"2017-03-09T04:43:41.515Z"},{"text":"Do
85
+ you have pictures of the place at 3520 Willows Road?","created":"2017-03-09T04:44:03.664Z","updated":"2017-03-09T04:44:03.664Z"},{"text":"Pictures?","created":"2017-03-09T04:44:11.051Z","updated":"2017-03-09T04:44:11.051Z"}],"description":null},{"intent":"ask_the_price","created":"2017-03-09T02:20:53.354Z","updated":"2017-03-09T04:39:45.998Z","examples":[{"text":"Can
86
+ you tell me what the list price is?","created":"2017-03-09T02:20:53.354Z","updated":"2017-03-09T02:20:53.354Z"},{"text":"How
87
+ much?","created":"2017-03-09T02:20:53.354Z","updated":"2017-03-09T02:20:53.354Z"},{"text":"How
88
+ much does it cost?","created":"2017-03-09T02:20:53.354Z","updated":"2017-03-09T02:20:53.354Z"},{"text":"How
89
+ much does the property cost?","created":"2017-03-09T02:20:53.354Z","updated":"2017-03-09T02:20:53.354Z"},{"text":"How
90
+ much is it?","created":"2017-03-09T02:20:53.354Z","updated":"2017-03-09T02:20:53.354Z"},{"text":"How
91
+ much is the home?","created":"2017-03-09T02:20:53.354Z","updated":"2017-03-09T02:20:53.354Z"},{"text":"How
92
+ much is the house?","created":"2017-03-09T02:20:53.354Z","updated":"2017-03-09T02:20:53.354Z"},{"text":"How
93
+ much is the property?","created":"2017-03-09T02:20:53.354Z","updated":"2017-03-09T02:20:53.354Z"},{"text":"List
94
+ price?","created":"2017-03-09T02:20:53.354Z","updated":"2017-03-09T02:20:53.354Z"},{"text":"Selling
95
+ price?","created":"2017-03-09T02:20:53.354Z","updated":"2017-03-09T02:20:53.354Z"},{"text":"What
96
+ is the asking price?","created":"2017-03-09T02:20:53.354Z","updated":"2017-03-09T02:20:53.354Z"},{"text":"What
97
+ is the list price?","created":"2017-03-09T02:20:53.354Z","updated":"2017-03-09T02:20:53.354Z"},{"text":"What
98
+ is the price of the home?","created":"2017-03-09T02:20:53.354Z","updated":"2017-03-09T02:20:53.354Z"},{"text":"What
99
+ is the price of the house on willows road?","created":"2017-03-09T04:39:45.998Z","updated":"2017-03-09T04:39:45.998Z"}],"description":null},{"intent":"ask_unit_number","created":"2017-03-13T23:31:05.268Z","updated":"2017-03-13T23:33:41.186Z","examples":[{"text":"Is
100
+ there a unit number?","created":"2017-03-13T23:31:23.652Z","updated":"2017-03-13T23:31:23.652Z"},{"text":"unit?","created":"2017-03-13T23:31:15.218Z","updated":"2017-03-13T23:31:15.218Z"},{"text":"What
101
+ is the unit number?","created":"2017-03-13T23:31:11.292Z","updated":"2017-03-13T23:31:11.292Z"},{"text":"What''s
102
+ the unit?","created":"2017-03-13T23:31:19.085Z","updated":"2017-03-13T23:31:19.085Z"},{"text":"What
103
+ unit number is it?","created":"2017-03-13T23:33:41.186Z","updated":"2017-03-13T23:33:41.186Z"}],"description":null},{"intent":"ask_unknown","created":"2017-03-15T22:15:35.737Z","updated":"2017-03-15T22:15:35.737Z","examples":[{"text":"Age
104
+ and condition of the roof?","created":"2017-03-15T22:15:35.737Z","updated":"2017-03-15T22:15:35.737Z"},{"text":"Condition
105
+ of property?","created":"2017-03-15T22:15:35.737Z","updated":"2017-03-15T22:15:35.737Z"},{"text":"Did
106
+ the property have a home inspection done when the present owners bought it?","created":"2017-03-15T22:15:35.737Z","updated":"2017-03-15T22:15:35.737Z"},{"text":"Do
107
+ you have the the furnace type and service history?","created":"2017-03-15T22:15:35.737Z","updated":"2017-03-15T22:15:35.737Z"},{"text":"Has
108
+ anybody else made an offer on this property?","created":"2017-03-15T22:15:35.737Z","updated":"2017-03-15T22:15:35.737Z"},{"text":"How
109
+ close is public transit?","created":"2017-03-15T22:15:35.737Z","updated":"2017-03-15T22:15:35.737Z"},{"text":"How
110
+ energy efficient is the property?","created":"2017-03-15T22:15:35.737Z","updated":"2017-03-15T22:15:35.737Z"},{"text":"How
111
+ long has the property been on the market?","created":"2017-03-15T22:15:35.737Z","updated":"2017-03-15T22:15:35.737Z"},{"text":"How
112
+ long have the owners lived there?","created":"2017-03-15T22:15:35.737Z","updated":"2017-03-15T22:15:35.737Z"},{"text":"How
113
+ long they have owned the house?","created":"2017-03-15T22:15:35.737Z","updated":"2017-03-15T22:15:35.737Z"},{"text":"How
114
+ many bathrooms are on the basement?","created":"2017-03-15T22:15:35.737Z","updated":"2017-03-15T22:15:35.737Z"},{"text":"How
115
+ many bedrooms are on the basement?","created":"2017-03-15T22:15:35.737Z","updated":"2017-03-15T22:15:35.737Z"},{"text":"How
116
+ much are utility bills in the area?","created":"2017-03-15T22:15:35.737Z","updated":"2017-03-15T22:15:35.737Z"},{"text":"How
117
+ much can it rent for?","created":"2017-03-15T22:15:35.737Z","updated":"2017-03-15T22:15:35.737Z"},{"text":"How
118
+ new or how sturdy are the drains and guttering?","created":"2017-03-15T22:15:35.737Z","updated":"2017-03-15T22:15:35.737Z"},{"text":"How
119
+ old is the roof","created":"2017-03-15T22:15:35.737Z","updated":"2017-03-15T22:15:35.737Z"},{"text":"peak
120
+ a boo view?","created":"2017-03-15T22:15:35.737Z","updated":"2017-03-15T22:15:35.737Z"},{"text":"Size
121
+ of backyard?","created":"2017-03-15T22:15:35.737Z","updated":"2017-03-15T22:15:35.737Z"},{"text":"Tell
122
+ me about the basement.","created":"2017-03-15T22:15:35.737Z","updated":"2017-03-15T22:15:35.737Z"},{"text":"What
123
+ home repairs/improvements have been made?","created":"2017-03-15T22:15:35.737Z","updated":"2017-03-15T22:15:35.737Z"},{"text":"What
124
+ is the crime rate like in the neighbourhood?","created":"2017-03-15T22:15:35.737Z","updated":"2017-03-15T22:15:35.737Z"},{"text":"What
125
+ is the electrical panel size?","created":"2017-03-15T22:15:35.737Z","updated":"2017-03-15T22:15:35.737Z"},{"text":"What
126
+ is the furnace age?","created":"2017-03-15T22:15:35.737Z","updated":"2017-03-15T22:15:35.737Z"},{"text":"When
127
+ was the boiler last replaced?","created":"2017-03-15T22:15:35.737Z","updated":"2017-03-15T22:15:35.737Z"}],"description":null},{"intent":"ask_what_i_can_do","created":"2017-03-03T02:59:22.900Z","updated":"2017-03-09T01:35:57.939Z","examples":[{"text":"ask
128
+ what I can do","created":"2017-03-09T01:35:57.939Z","updated":"2017-03-09T01:35:57.939Z"},{"text":"Can
129
+ you answer my real estate questions?","created":"2017-03-03T03:14:33.470Z","updated":"2017-03-03T03:14:33.470Z"},{"text":"How
130
+ can you help me?","created":"2017-03-03T02:59:29.848Z","updated":"2017-03-03T02:59:29.848Z"},{"text":"What
131
+ are your abilities?","created":"2017-03-03T02:59:41.357Z","updated":"2017-03-03T02:59:41.357Z"},{"text":"What
132
+ are your capabilities?","created":"2017-03-03T03:00:03.593Z","updated":"2017-03-03T03:00:03.593Z"},{"text":"What
133
+ can you do?","created":"2017-03-03T02:59:45.458Z","updated":"2017-03-03T02:59:45.458Z"},{"text":"What
134
+ kinds of questions can you answer?","created":"2017-03-03T02:59:51.570Z","updated":"2017-03-03T02:59:51.570Z"}],"description":null},{"intent":"ask_who_i_am","created":"2017-02-22T02:15:38.537Z","updated":"2017-03-09T01:36:05.781Z","examples":[{"text":"Ask
135
+ who I am","created":"2017-03-09T01:36:05.781Z","updated":"2017-03-09T01:36:05.781Z"},{"text":"Do
136
+ you have a name?","created":"2017-02-22T02:15:45.758Z","updated":"2017-02-22T02:15:45.758Z"},{"text":"What
137
+ do I call you?","created":"2017-02-22T02:15:51.617Z","updated":"2017-02-22T02:15:51.617Z"},{"text":"What
138
+ do your friends call you?","created":"2017-02-22T02:16:00.286Z","updated":"2017-02-22T02:16:00.286Z"},{"text":"What
139
+ is your name?","created":"2017-02-22T02:16:04.095Z","updated":"2017-02-22T02:16:04.095Z"},{"text":"Who
140
+ are you?","created":"2017-02-22T02:16:09.663Z","updated":"2017-02-22T02:16:09.663Z"}],"description":null},{"intent":"ask_zoning","created":"2017-03-09T04:54:53.550Z","updated":"2017-03-09T04:54:53.550Z","examples":[{"text":"Current
141
+ zoning?","created":"2017-03-09T04:54:53.550Z","updated":"2017-03-09T04:54:53.550Z"},{"text":"What
142
+ is the property zoning?","created":"2017-03-09T04:54:53.550Z","updated":"2017-03-09T04:54:53.550Z"},{"text":"What
143
+ is the zone?","created":"2017-03-09T04:54:53.550Z","updated":"2017-03-09T04:54:53.550Z"},{"text":"What
144
+ is the zoning?","created":"2017-03-09T04:54:53.550Z","updated":"2017-03-09T04:54:53.550Z"},{"text":"What
145
+ zone is it in?","created":"2017-03-09T04:54:53.550Z","updated":"2017-03-09T04:54:53.550Z"},{"text":"Zoning?","created":"2017-03-09T04:54:53.550Z","updated":"2017-03-09T04:54:53.550Z"}],"description":null},{"intent":"confused","created":"2017-03-09T00:11:35.998Z","updated":"2017-03-13T22:07:31.734Z","examples":[{"text":"help
146
+ me","created":"2017-03-13T22:07:31.734Z","updated":"2017-03-13T22:07:31.734Z"},{"text":"I
147
+ don''t get it","created":"2017-03-09T00:11:54.737Z","updated":"2017-03-09T00:11:54.737Z"},{"text":"I
148
+ don''t understand","created":"2017-03-09T00:11:50.567Z","updated":"2017-03-09T00:11:50.567Z"},{"text":"I
149
+ don''t understand.","created":"2017-03-09T00:15:31.915Z","updated":"2017-03-09T00:15:31.915Z"},{"text":"I''m
150
+ confused","created":"2017-03-09T00:12:07.132Z","updated":"2017-03-09T00:12:07.132Z"},{"text":"I''m
151
+ confused.","created":"2017-03-09T00:15:40.460Z","updated":"2017-03-09T00:15:40.460Z"},{"text":"What?","created":"2017-03-09T00:12:11.983Z","updated":"2017-03-09T00:12:11.983Z"},{"text":"What''s
152
+ happening?","created":"2017-03-09T00:11:58.904Z","updated":"2017-03-09T00:11:58.904Z"}],"description":null},{"intent":"enquire_about_homes","created":"2017-03-13T16:56:38.333Z","updated":"2017-03-13T22:28:32.222Z","examples":[{"text":"Do
153
+ have homes under 700k?","created":"2017-03-13T22:16:27.434Z","updated":"2017-03-13T22:16:27.434Z"},{"text":"Do
154
+ you have a condo for sale?","created":"2017-03-13T17:02:02.758Z","updated":"2017-03-13T17:02:02.758Z"},{"text":"Do
155
+ you have any condos?","created":"2017-03-13T16:58:10.704Z","updated":"2017-03-13T16:58:10.704Z"},{"text":"Do
156
+ you have any home where I can have a dog?","created":"2017-03-13T17:16:14.253Z","updated":"2017-03-13T17:16:14.253Z"},{"text":"Do
157
+ you have any houses for sale?","created":"2017-03-13T21:43:04.944Z","updated":"2017-03-13T21:43:04.944Z"},{"text":"Do
158
+ you have any pet friendly homes?","created":"2017-03-13T17:16:30.636Z","updated":"2017-03-13T17:16:30.636Z"},{"text":"Do
159
+ you have condos with 2 bathrooms?","created":"2017-03-13T22:28:22.891Z","updated":"2017-03-13T22:28:22.891Z"},{"text":"Do
160
+ you have houses with 5 bedrooms?","created":"2017-03-13T22:28:32.222Z","updated":"2017-03-13T22:28:32.222Z"},{"text":"I''d
161
+ like a place where I can bring my cat.","created":"2017-03-13T17:16:23.357Z","updated":"2017-03-13T17:16:23.357Z"},{"text":"I''m
162
+ interested in a duplex.","created":"2017-03-13T16:58:22.644Z","updated":"2017-03-13T16:58:22.644Z"},{"text":"I''m
163
+ interested in a house.","created":"2017-03-13T17:05:43.332Z","updated":"2017-03-13T17:05:43.332Z"},{"text":"I''m
164
+ looking for a home where I can have a dog.","created":"2017-03-13T17:17:35.961Z","updated":"2017-03-13T17:17:35.961Z"},{"text":"I
165
+ want to know about your apartments for sale.","created":"2017-03-13T16:58:31.245Z","updated":"2017-03-13T16:58:31.245Z"},{"text":"What
166
+ homes do you have for sale?","created":"2017-03-13T16:57:52.987Z","updated":"2017-03-13T16:57:52.987Z"},{"text":"What
167
+ properties do you have?","created":"2017-03-13T16:58:06.104Z","updated":"2017-03-13T16:58:06.104Z"}],"description":null},{"intent":"express_delight","created":"2017-02-21T20:48:05.167Z","updated":"2017-03-09T01:36:14.661Z","examples":[{"text":";-)","created":"2017-02-21T20:48:05.167Z","updated":"2017-02-21T20:48:05.167Z"},{"text":";)","created":"2017-02-21T20:48:05.167Z","updated":"2017-02-21T20:48:05.167Z"},{"text":":-)","created":"2017-02-21T20:48:05.167Z","updated":"2017-02-21T20:48:05.167Z"},{"text":":)","created":"2017-02-21T20:48:05.167Z","updated":"2017-02-21T20:48:05.167Z"},{"text":"☺","created":"2017-02-21T20:48:05.167Z","updated":"2017-02-21T20:48:05.167Z"},{"text":"Awesome!","created":"2017-02-21T20:48:05.167Z","updated":"2017-02-21T20:48:05.167Z"},{"text":"Excellent!","created":"2017-02-21T20:48:05.167Z","updated":"2017-02-21T20:48:05.167Z"},{"text":"Express
168
+ delight","created":"2017-03-09T01:36:14.661Z","updated":"2017-03-09T01:36:14.661Z"},{"text":"Great!","created":"2017-02-21T20:48:05.167Z","updated":"2017-02-21T20:48:05.167Z"},{"text":"I
169
+ like it!","created":"2017-02-21T20:48:05.167Z","updated":"2017-02-21T20:48:05.167Z"},{"text":"Nice!","created":"2017-02-21T20:48:05.167Z","updated":"2017-02-21T20:48:05.167Z"},{"text":":smile:","created":"2017-02-21T20:48:05.167Z","updated":"2017-02-21T20:48:05.167Z"},{"text":":wink:","created":"2017-02-21T20:48:05.167Z","updated":"2017-02-21T20:48:05.167Z"},{"text":"Wow!","created":"2017-02-21T20:48:05.167Z","updated":"2017-02-21T20:48:05.167Z"}],"description":null},{"intent":"greeting","created":"2017-03-09T01:25:12.143Z","updated":"2017-03-13T22:06:59.564Z","examples":[{"text":"hello","created":"2017-03-09T01:25:18.571Z","updated":"2017-03-09T01:25:18.571Z"},{"text":"hello?","created":"2017-03-09T01:25:22.541Z","updated":"2017-03-09T01:25:22.541Z"},{"text":"hey","created":"2017-03-13T22:06:59.564Z","updated":"2017-03-13T22:06:59.564Z"},{"text":"hi","created":"2017-03-09T01:25:38.900Z","updated":"2017-03-09T01:25:38.900Z"},{"text":"is
170
+ anyone home?","created":"2017-03-09T01:25:27.607Z","updated":"2017-03-09T01:25:27.607Z"},{"text":"is
171
+ someone there?","created":"2017-03-09T01:25:32.429Z","updated":"2017-03-09T01:25:32.429Z"}],"description":null},{"intent":"how_are_you","created":"2017-03-09T01:28:23.908Z","updated":"2017-03-09T01:29:11.374Z","examples":[{"text":"are
172
+ you doing okay?","created":"2017-03-09T01:28:54.695Z","updated":"2017-03-09T01:28:54.695Z"},{"text":"are
173
+ you okay?","created":"2017-03-09T01:28:59.458Z","updated":"2017-03-09T01:28:59.458Z"},{"text":"how
174
+ are things?","created":"2017-03-09T01:29:04.401Z","updated":"2017-03-09T01:29:04.401Z"},{"text":"how
175
+ are you?","created":"2017-03-09T01:28:49.411Z","updated":"2017-03-09T01:28:49.411Z"},{"text":"how''s
176
+ it going?","created":"2017-03-09T01:29:11.374Z","updated":"2017-03-09T01:29:11.374Z"}],"description":null},{"intent":"like_this","created":"2017-03-03T01:52:55.799Z","updated":"2017-03-13T15:52:37.808Z","examples":[{"text":"like
177
+ this","created":"2017-03-03T01:52:55.799Z","updated":"2017-03-03T01:52:55.799Z"},{"text":"Like
178
+ this?","created":"2017-03-03T01:52:55.799Z","updated":"2017-03-03T01:52:55.799Z"},{"text":"so
179
+ like this?","created":"2017-03-13T15:52:37.808Z","updated":"2017-03-13T15:52:37.808Z"}],"description":null},{"intent":"no_problem","created":"2017-03-09T00:22:52.020Z","updated":"2017-03-09T01:36:33.424Z","examples":[{"text":"Don''t
180
+ mention it.","created":"2017-03-09T00:24:23.994Z","updated":"2017-03-09T00:24:23.994Z"},{"text":"Don''t
181
+ worry about it.","created":"2017-03-09T00:23:52.194Z","updated":"2017-03-09T00:23:52.194Z"},{"text":"No
182
+ worries.","created":"2017-03-09T00:24:13.913Z","updated":"2017-03-09T00:24:13.913Z"},{"text":"Oh
183
+ that''s okay.","created":"2017-03-09T00:23:40.498Z","updated":"2017-03-09T00:23:40.498Z"},{"text":"Sure.","created":"2017-03-09T00:23:44.782Z","updated":"2017-03-09T00:23:44.782Z"},{"text":"Tell
184
+ me there''s no problem","created":"2017-03-09T01:36:33.424Z","updated":"2017-03-09T01:36:33.424Z"}],"description":null},{"intent":"open_house","created":"2017-02-23T23:29:57.628Z","updated":"2017-02-23T23:35:11.001Z","examples":[{"text":"Appointment?","created":"2017-02-23T23:29:57.628Z","updated":"2017-02-23T23:29:57.628Z"},{"text":"Appointment
185
+ time?","created":"2017-02-23T23:29:57.628Z","updated":"2017-02-23T23:29:57.628Z"},{"text":"Can
186
+ I see the house?","created":"2017-02-23T23:29:57.628Z","updated":"2017-02-28T22:07:45.739Z"},{"text":"Can
187
+ I view the house?","created":"2017-02-23T23:29:57.628Z","updated":"2017-02-28T22:07:53.563Z"},{"text":"Is
188
+ there an open house?","created":"2017-02-23T23:34:04.478Z","updated":"2017-02-23T23:34:04.478Z"},{"text":"Is
189
+ there a private viewing?","created":"2017-02-23T23:33:58.179Z","updated":"2017-02-23T23:33:58.179Z"},{"text":"Make
190
+ an appointment","created":"2017-02-23T23:34:13.284Z","updated":"2017-02-23T23:34:13.284Z"},{"text":"open
191
+ house","created":"2017-02-23T23:34:23.743Z","updated":"2017-02-23T23:34:23.743Z"},{"text":"Open
192
+ house times","created":"2017-02-23T23:34:20.279Z","updated":"2017-02-23T23:34:20.279Z"},{"text":"private
193
+ viewing","created":"2017-02-23T23:34:32.005Z","updated":"2017-02-23T23:34:32.005Z"},{"text":"see
194
+ it today","created":"2017-02-23T23:34:36.831Z","updated":"2017-02-23T23:34:36.831Z"},{"text":"see
195
+ it tomorrow","created":"2017-02-23T23:34:40.347Z","updated":"2017-02-23T23:34:40.347Z"},{"text":"viewing","created":"2017-02-23T23:34:43.681Z","updated":"2017-02-23T23:34:43.681Z"},{"text":"When
196
+ can I see it?","created":"2017-02-23T23:34:50.492Z","updated":"2017-02-23T23:34:50.492Z"},{"text":"When
197
+ can I view the house?","created":"2017-02-23T23:34:58.232Z","updated":"2017-02-28T22:08:01.406Z"},{"text":"When
198
+ is the next open house?","created":"2017-02-23T23:35:06.167Z","updated":"2017-02-23T23:35:06.167Z"},{"text":"When
199
+ is the next viewing?","created":"2017-02-23T23:35:11.001Z","updated":"2017-02-23T23:35:11.001Z"}],"description":null},{"intent":"switch_listings","created":"2017-03-03T03:20:50.556Z","updated":"2017-03-03T03:20:50.556Z","examples":[{"text":"Any
200
+ other homes for sale?","created":"2017-03-03T03:20:50.556Z","updated":"2017-03-03T03:20:50.556Z"},{"text":"Any
201
+ other listing?","created":"2017-03-03T03:20:50.556Z","updated":"2017-03-03T03:20:50.556Z"},{"text":"Can
202
+ you give me some infromation on a listing?","created":"2017-03-03T03:20:50.556Z","updated":"2017-03-03T03:20:50.556Z"},{"text":"I
203
+ am interested in another listing.","created":"2017-03-03T03:20:50.556Z","updated":"2017-03-03T03:20:50.556Z"},{"text":"Let''s
204
+ talk about another listing.","created":"2017-03-03T03:20:50.556Z","updated":"2017-03-03T03:20:50.556Z"},{"text":"Let''s
205
+ talk about another property.","created":"2017-03-03T03:20:50.556Z","updated":"2017-03-03T03:20:50.556Z"},{"text":"Other
206
+ listings for sale?","created":"2017-03-03T03:20:50.556Z","updated":"2017-03-03T03:20:50.556Z"},{"text":"Other
207
+ properties?","created":"2017-03-03T03:20:50.556Z","updated":"2017-03-03T03:20:50.556Z"},{"text":"Property
208
+ list?","created":"2017-03-03T03:20:50.556Z","updated":"2017-03-03T03:20:50.556Z"},{"text":"Show
209
+ me different properties.","created":"2017-03-03T03:20:50.556Z","updated":"2017-03-03T03:20:50.556Z"},{"text":"Show
210
+ me listings.","created":"2017-03-03T03:20:50.556Z","updated":"2017-03-03T03:20:50.556Z"},{"text":"Show
211
+ me the realtor''s listings.","created":"2017-03-03T03:20:50.556Z","updated":"2017-03-03T03:20:50.556Z"},{"text":"Show
212
+ me your other properties.","created":"2017-03-03T03:20:50.556Z","updated":"2017-03-03T03:20:50.556Z"},{"text":"Talk
213
+ about a different property.","created":"2017-03-03T03:20:50.556Z","updated":"2017-03-03T03:20:50.556Z"},{"text":"Tell
214
+ me about a different property.","created":"2017-03-03T03:20:50.556Z","updated":"2017-03-03T03:20:50.556Z"},{"text":"What
215
+ about other properties?","created":"2017-03-03T03:20:50.556Z","updated":"2017-03-03T03:20:50.556Z"},{"text":"What
216
+ listing does he have?","created":"2017-03-03T03:20:50.556Z","updated":"2017-03-03T03:20:50.556Z"},{"text":"What
217
+ listing does she have?","created":"2017-03-03T03:20:50.556Z","updated":"2017-03-03T03:20:50.556Z"},{"text":"What
218
+ listings do you currently have?","created":"2017-03-03T03:20:50.556Z","updated":"2017-03-03T03:20:50.556Z"},{"text":"What
219
+ listings do you have?","created":"2017-03-03T03:20:50.556Z","updated":"2017-03-03T03:20:50.556Z"},{"text":"What
220
+ other listings do you have?","created":"2017-03-03T03:20:50.556Z","updated":"2017-03-03T03:20:50.556Z"},{"text":"What
221
+ other properties do you have for sale?","created":"2017-03-03T03:20:50.556Z","updated":"2017-03-03T03:20:50.556Z"}],"description":null},{"intent":"talk_to_my_boss","created":"2017-02-22T02:18:43.344Z","updated":"2017-03-09T00:15:19.450Z","examples":[{"text":"Call
222
+ agent.","created":"2017-02-22T02:18:52.266Z","updated":"2017-02-22T02:18:52.266Z"},{"text":"Call
223
+ someone.","created":"2017-02-22T02:19:00.819Z","updated":"2017-02-22T02:19:00.819Z"},{"text":"Call
224
+ you boss now.","created":"2017-02-22T02:19:06.464Z","updated":"2017-02-22T02:19:06.464Z"},{"text":"Call
225
+ your boss.","created":"2017-02-22T02:19:11.995Z","updated":"2017-02-22T02:19:11.995Z"},{"text":"Can
226
+ I talk to a human?","created":"2017-03-09T00:15:19.450Z","updated":"2017-03-09T00:15:19.450Z"},{"text":"Contact
227
+ the realtor.","created":"2017-02-22T02:19:17.297Z","updated":"2017-02-22T02:19:17.297Z"},{"text":"Do
228
+ a phone call.","created":"2017-02-22T02:19:21.942Z","updated":"2017-02-22T02:19:21.942Z"},{"text":"Speak
229
+ to your boss.","created":"2017-02-22T02:19:27.052Z","updated":"2017-02-22T02:19:27.052Z"},{"text":"Talk
230
+ to a human.","created":"2017-02-22T02:19:31.827Z","updated":"2017-02-22T02:19:31.827Z"},{"text":"Talk
231
+ to the realtor.","created":"2017-02-22T02:19:36.989Z","updated":"2017-02-22T02:19:36.989Z"}],"description":null},{"intent":"tell_me_something","created":"2017-03-15T21:57:14.537Z","updated":"2017-03-15T21:57:14.537Z","examples":[{"text":"Can
232
+ you tell me about the property?","created":"2017-03-15T21:57:14.537Z","updated":"2017-03-15T21:57:14.537Z"},{"text":"I
233
+ am interested in the house.","created":"2017-03-15T21:57:14.537Z","updated":"2017-03-15T21:57:14.537Z"},{"text":"Tell
234
+ me more.","created":"2017-03-15T21:57:14.537Z","updated":"2017-03-15T21:57:14.537Z"},{"text":"Tell
235
+ me something else.","created":"2017-03-15T21:57:14.537Z","updated":"2017-03-15T21:57:14.537Z"},{"text":"Tell
236
+ me something new about the property.","created":"2017-03-15T21:57:14.537Z","updated":"2017-03-15T21:57:14.537Z"},{"text":"What
237
+ can you tell me about the property?","created":"2017-03-15T21:57:14.537Z","updated":"2017-03-15T21:57:14.537Z"},{"text":"What
238
+ else can you tell me?","created":"2017-03-15T21:57:14.537Z","updated":"2017-03-15T21:57:14.537Z"}],"description":null},{"intent":"thanks_and_goodbye","created":"2017-03-15T21:59:32.173Z","updated":"2017-03-15T21:59:32.173Z","examples":[{"text":"Adios","created":"2017-03-15T21:59:32.173Z","updated":"2017-03-15T21:59:32.173Z"},{"text":"All
239
+ right then.","created":"2017-03-15T21:59:32.173Z","updated":"2017-03-15T21:59:32.173Z"},{"text":"Bye!","created":"2017-03-15T21:59:32.173Z","updated":"2017-03-15T21:59:32.173Z"},{"text":"Bye
240
+ bye!","created":"2017-03-15T21:59:32.173Z","updated":"2017-03-15T21:59:32.173Z"},{"text":"Catch
241
+ you later.","created":"2017-03-15T21:59:32.173Z","updated":"2017-03-15T21:59:32.173Z"},{"text":"Ciao.","created":"2017-03-15T21:59:32.173Z","updated":"2017-03-15T21:59:32.173Z"},{"text":"Farewell","created":"2017-03-15T21:59:32.173Z","updated":"2017-03-15T21:59:32.173Z"},{"text":"Good
242
+ night.","created":"2017-03-15T21:59:32.173Z","updated":"2017-03-15T21:59:32.173Z"},{"text":"I
243
+ must be going.","created":"2017-03-15T21:59:32.173Z","updated":"2017-03-15T21:59:32.173Z"},{"text":"I''ve
244
+ got to get going.","created":"2017-03-15T21:59:32.173Z","updated":"2017-03-15T21:59:32.173Z"},{"text":"Later!","created":"2017-03-15T21:59:32.173Z","updated":"2017-03-15T21:59:32.173Z"},{"text":"Sayonara!","created":"2017-03-15T21:59:32.173Z","updated":"2017-03-15T21:59:32.173Z"},{"text":"So
245
+ long.","created":"2017-03-15T21:59:32.173Z","updated":"2017-03-15T21:59:32.173Z"},{"text":"Take
246
+ care.","created":"2017-03-15T21:59:32.173Z","updated":"2017-03-15T21:59:32.173Z"},{"text":"Take
247
+ it easy.","created":"2017-03-15T21:59:32.173Z","updated":"2017-03-15T21:59:32.173Z"},{"text":"Talk
248
+ to you later.","created":"2017-03-15T21:59:32.173Z","updated":"2017-03-15T21:59:32.173Z"},{"text":"Thanks.
249
+ Goodbye.","created":"2017-03-15T21:59:32.173Z","updated":"2017-03-15T21:59:32.173Z"},{"text":"Thanks.
250
+ Good night.","created":"2017-03-15T21:59:32.173Z","updated":"2017-03-15T21:59:32.173Z"},{"text":"Thank
251
+ you. Goodbye.","created":"2017-03-15T21:59:32.173Z","updated":"2017-03-15T21:59:32.173Z"},{"text":"Thank
252
+ you. Good night.","created":"2017-03-15T21:59:32.173Z","updated":"2017-03-15T21:59:32.173Z"},{"text":"Thank
253
+ you. Have a good one.","created":"2017-03-15T21:59:32.173Z","updated":"2017-03-15T21:59:32.173Z"}],"description":null},{"intent":"thumbs_down","created":"2017-03-01T00:59:47.842Z","updated":"2017-03-01T01:14:38.286Z","examples":[{"text":":-1:","created":"2017-03-01T01:13:45.253Z","updated":"2017-03-01T01:13:45.253Z"},{"text":"bad","created":"2017-03-01T01:14:32.818Z","updated":"2017-03-01T01:14:32.818Z"},{"text":"i
254
+ don''t like it","created":"2017-03-01T01:14:38.286Z","updated":"2017-03-01T01:14:38.286Z"},{"text":"no","created":"2017-03-01T01:13:48.399Z","updated":"2017-03-01T01:13:48.399Z"},{"text":"nope","created":"2017-03-01T01:13:51.345Z","updated":"2017-03-01T01:13:51.345Z"},{"text":"not
255
+ good","created":"2017-03-01T01:14:19.992Z","updated":"2017-03-01T01:14:19.992Z"}],"description":null},{"intent":"thumbs_up","created":"2017-03-01T00:58:33.188Z","updated":"2017-03-01T01:14:26.172Z","examples":[{"text":":+1:","created":"2017-03-01T01:13:23.936Z","updated":"2017-03-01T01:13:23.936Z"},{"text":"alright","created":"2017-03-01T01:13:40.893Z","updated":"2017-03-01T01:13:40.893Z"},{"text":"great","created":"2017-03-01T01:14:26.172Z","updated":"2017-03-01T01:14:26.172Z"},{"text":"okay","created":"2017-03-01T01:13:33.854Z","updated":"2017-03-01T01:13:33.854Z"},{"text":"yes","created":"2017-03-01T01:13:29.774Z","updated":"2017-03-01T01:13:29.774Z"}],"description":null}],"updated":"2017-03-22T00:43:09.589Z","entities":[{"type":null,"entity":"amenities","source":null,"values":[{"value":"bathroom","created":"2017-03-13T17:13:45.107Z","updated":"2017-03-13T17:13:45.107Z","metadata":null,"synonyms":["bathrooms","toilets"]},{"value":"gym","created":"2017-03-13T17:13:45.107Z","updated":"2017-03-13T17:13:45.107Z","metadata":null,"synonyms":["gym","workout
256
+ area"]},{"value":"pets","created":"2017-03-13T17:13:45.107Z","updated":"2017-03-13T17:16:43.810Z","metadata":null,"synonyms":["animals","cat","cats","dog","dogs","pet","pets"]},{"value":"pool","created":"2017-03-13T17:13:45.107Z","updated":"2017-03-13T17:13:45.107Z","metadata":null,"synonyms":["pool","swimming"]}],"created":"2017-03-13T17:13:45.107Z","updated":"2017-03-13T17:13:45.107Z","open_list":false,"description":null},{"type":null,"entity":"filter-thing","source":null,"values":[{"value":"bathroom","created":"2017-03-13T22:27:12.801Z","updated":"2017-03-13T22:27:22.730Z","metadata":null,"synonyms":["bathroom","bathrooms","showers","toilets"]},{"value":"bedrooms","created":"2017-03-13T22:27:40.472Z","updated":"2017-03-13T22:27:53.403Z","metadata":null,"synonyms":["bedroom","bedrooms","beds"]},{"value":"price","created":"2017-03-13T22:27:01.593Z","updated":"2017-03-13T22:27:32.496Z","metadata":null,"synonyms":["cost","price","value"]}],"created":"2017-03-13T22:26:58.190Z","updated":"2017-03-13T22:26:58.190Z","open_list":false,"description":null},{"type":null,"entity":"listing","source":null,"values":[{"value":"1003
257
+ Brothers Place","created":"2017-03-09T02:07:07.587Z","updated":"2017-03-13T21:26:11.851Z","metadata":null,"synonyms":["1003
258
+ brothers","1003 brothers place","brothers place duplex","brothers property","duplex
259
+ on brothers","property on brothers"]},{"value":"3520 Willow Street","created":"2017-03-09T02:06:35.915Z","updated":"2017-03-13T17:19:47.300Z","metadata":null,"synonyms":["3520
260
+ Willow","3520 willows road","House on Willows","house on willows road","Willow
261
+ Listing","Willows House","Willow Street House"]},{"value":"578 Main St","created":"2017-03-13T21:59:30.842Z","updated":"2017-03-13T21:59:30.842Z","metadata":null,"synonyms":["578
262
+ Main","condo on main","main st condo","place on main"]}],"created":"2017-03-09T02:01:59.214Z","updated":"2017-03-09T02:01:59.214Z","open_list":false,"description":null},{"type":null,"entity":"numeric-filter","source":null,"values":[{"value":"between","created":"2017-03-13T22:24:51.427Z","updated":"2017-03-13T22:24:51.427Z","metadata":null,"synonyms":["between","inbetween","less
263
+ than and greater than"]},{"value":"over","created":"2017-03-13T22:24:02.376Z","updated":"2017-03-13T22:24:02.376Z","metadata":null,"synonyms":["above","more
264
+ than","over","starting at"]},{"value":"under","created":"2017-03-13T22:17:40.624Z","updated":"2017-03-13T22:17:40.624Z","metadata":null,"synonyms":["below","less
265
+ than","under"]}],"created":"2017-03-13T22:17:40.624Z","updated":"2017-03-13T22:26:15.495Z","open_list":false,"description":null},{"type":null,"entity":"property-type","source":null,"values":[{"value":"apartment","created":"2017-02-23T23:31:53.527Z","updated":"2017-03-13T17:01:04.551Z","metadata":null,"synonyms":["apartment","apartments"]},{"value":"condo","created":"2017-02-23T23:31:45.972Z","updated":"2017-03-13T17:01:00.870Z","metadata":null,"synonyms":["condo","condos"]},{"value":"duplex","created":"2017-03-13T17:01:32.893Z","updated":"2017-03-13T17:01:36.530Z","metadata":null,"synonyms":["duplex"]},{"value":"home","created":"2017-02-23T23:32:12.092Z","updated":"2017-03-13T17:01:24.305Z","metadata":null,"synonyms":["home","homes","house"]},{"value":"property","created":"2017-02-23T23:30:54.803Z","updated":"2017-02-23T23:31:14.845Z","metadata":null,"synonyms":["property"]}],"created":"2017-02-23T23:30:54.803Z","updated":"2017-02-23T23:31:33.475Z","open_list":false,"description":null},{"type":null,"entity":"sys-currency","source":"system.entities","values":[],"created":"2017-03-02T18:44:03.952Z","updated":"2017-03-02T18:44:03.952Z","open_list":false,"description":null},{"type":null,"entity":"sys-number","source":"system.entities","values":[],"created":"2017-03-02T18:44:08.894Z","updated":"2017-03-02T18:44:08.894Z","open_list":false,"description":null}],"language":"en","metadata":null,"description":"Realtor
266
+ bot that uses the Watson Conversation Service","dialog_nodes":[{"go_to":null,"output":{},"parent":null,"context":null,"created":"2017-02-21T22:01:48.718Z","updated":"2017-03-22T00:37:19.486Z","metadata":null,"conditions":"#express_delight","description":null,"dialog_node":"Tell
267
+ me you are happy","previous_sibling":"Repeat the initial question"},{"go_to":null,"output":{},"parent":null,"context":null,"created":"2017-02-22T02:17:04.783Z","updated":"2017-03-15T18:22:44.606Z","metadata":null,"conditions":"#ask_who_i_am","description":null,"dialog_node":"Ask
268
+ who I am","previous_sibling":"Talk to my boss"},{"go_to":null,"output":{},"parent":null,"context":null,"created":"2017-03-13T16:56:22.867Z","updated":"2017-03-13T16:58:43.309Z","metadata":null,"conditions":"#enquire_about_homes","description":null,"dialog_node":"Ask
269
+ about homes","previous_sibling":"Switch listings"},{"go_to":null,"output":{},"parent":"Repeat
270
+ the initial question","context":{"initial_question":"none"},"created":"2017-03-13T19:12:40.743Z","updated":"2017-03-13T19:13:06.985Z","metadata":null,"conditions":null,"description":null,"dialog_node":"Clear
271
+ initial question","previous_sibling":null},{"go_to":null,"output":{"action":"talk_to_my_boss"},"parent":null,"context":null,"created":"2017-02-22T02:19:54.845Z","updated":"2017-03-13T21:47:16.241Z","metadata":null,"conditions":"#talk_to_my_boss","description":null,"dialog_node":"Talk
272
+ to my boss","previous_sibling":"Conversation Starts"},{"go_to":null,"output":{"boolean":{"template":"realtor/intro_question_two"}},"parent":"Introduce
273
+ the Bot","context":null,"created":"2017-03-03T03:01:58.940Z","updated":"2017-03-03T03:05:20.184Z","metadata":null,"conditions":"#like_this","description":null,"dialog_node":"Like
274
+ that.","previous_sibling":null},{"go_to":null,"output":{"text":{"values":["I
275
+ didn''t quite understand that. You can say \"call my boss\" if you want to
276
+ talk to a human."],"selection_policy":"sequential"}},"parent":null,"context":null,"created":"2017-03-09T00:20:22.602Z","updated":"2017-03-09T02:00:47.770Z","metadata":null,"conditions":"#confused","description":null,"dialog_node":"Say
277
+ you are confused","previous_sibling":"Ask about homes"},{"go_to":null,"output":{"text":{"values":["I
278
+ don''t have an answer for that right now."],"selection_policy":"sequential"}},"parent":null,"context":null,"created":"2017-03-13T18:35:54.554Z","updated":"2017-03-13T18:38:18.033Z","metadata":null,"conditions":"#known_unknown","description":null,"dialog_node":"Cannot
279
+ answer","previous_sibling":"Ask how I am"},{"go_to":null,"output":{"text":{"values":["I
280
+ don''t think I understood what you''re asking for."],"selection_policy":"sequential"}},"parent":null,"context":null,"created":"2017-03-13T22:08:42.060Z","updated":"2017-03-13T22:09:02.354Z","metadata":null,"conditions":"true","description":null,"dialog_node":"Fallback","previous_sibling":"Cannot
281
+ answer"},{"go_to":null,"output":{"text":{"values":["It is zone B."],"selection_policy":"sequential"}},"parent":"Asks
282
+ a property question","context":null,"created":"2017-03-13T18:33:31.791Z","updated":"2017-03-13T18:34:42.169Z","metadata":null,"conditions":"#ask_zoning","description":null,"dialog_node":"Answer
283
+ zoning","previous_sibling":"Answer price"},{"go_to":null,"output":{"text":{"values":["Oh
284
+ sorry, photos are coming soon!"],"selection_policy":"sequential"}},"parent":"Asks
285
+ a property question","context":null,"created":"2017-03-13T16:04:42.679Z","updated":"2017-03-13T16:05:12.585Z","metadata":null,"conditions":"#ask_photos","description":null,"dialog_node":"Answer
286
+ photos","previous_sibling":"Figure out the property"},{"go_to":null,"output":{"text":{"values":["Okay,
287
+ which property would you like to know about? You can say \"the house on willows\",
288
+ for example."],"selection_policy":"sequential"}},"parent":"Asks a property
289
+ question","context":null,"created":"2017-03-13T15:55:42.761Z","updated":"2017-03-13T16:12:10.905Z","metadata":null,"conditions":"$listing
290
+ == ''none''","description":null,"dialog_node":"Figure out the property","previous_sibling":null},{"go_to":null,"output":{"text":{"values":["One
291
+ million CAD."],"selection_policy":"sequential"}},"parent":"Asks a property
292
+ question","context":null,"created":"2017-03-13T18:34:57.021Z","updated":"2017-03-13T18:35:21.113Z","metadata":null,"conditions":"#ask_the_price","description":null,"dialog_node":"Answer
293
+ price","previous_sibling":"Answer photos"},{"go_to":null,"output":{"text":{"values":["Yes
294
+ you can have pets and there are no restrictions."],"selection_policy":"sequential"}},"parent":"Asks
295
+ a property question","context":null,"created":"2017-03-13T19:59:15.982Z","updated":"2017-03-13T19:59:41.968Z","metadata":null,"conditions":"#ask_pets","description":null,"dialog_node":"Answer
296
+ pets","previous_sibling":"Answer zoning"},{"go_to":null,"output":{"text":{"values":["Hello
297
+ there!","Hi!"],"selection_policy":"random"}},"parent":null,"context":null,"created":"2017-03-09T01:25:54.559Z","updated":"2017-03-09T01:34:09.474Z","metadata":null,"conditions":"#greeting","description":null,"dialog_node":"Say
298
+ hello","previous_sibling":"Tell me everything is okay"},{"go_to":null,"output":{"text":{"values":["I''m
299
+ well.","Doing just fine.","Things are good."],"selection_policy":"random"}},"parent":null,"context":null,"created":"2017-03-09T01:28:14.321Z","updated":"2017-03-09T01:34:04.794Z","metadata":null,"conditions":"#how_are_you","description":null,"dialog_node":"Ask
300
+ how I am","previous_sibling":"Say hello"},{"go_to":null,"output":{"text":{"values":["Sure.
301
+ Sounds good.","Okay. No problem.","Glad to hear it."],"selection_policy":"random"}},"parent":null,"context":null,"created":"2017-03-09T00:22:05.728Z","updated":"2017-03-09T01:33:46.587Z","metadata":null,"conditions":"#no_problem","description":null,"dialog_node":"Tell
302
+ me everything is okay","previous_sibling":"Asks a property question"},{"go_to":null,"output":{"choices":{"choices":[{"body":"Like
303
+ this?"}],"template":"realtor/intro_question_one"},"template":"realtor/intro"},"parent":null,"context":{"introduced":true,"initial_question":"<?input.text?>"},"created":"2017-02-28T22:45:00.810Z","updated":"2017-03-15T18:22:34.854Z","metadata":null,"conditions":"$introduced
304
+ == false","description":null,"dialog_node":"Introduce the Bot","previous_sibling":"Ask
305
+ who I am"},{"go_to":{"return":null,"selector":"body","dialog_node":"Clear
306
+ initial question"},"output":{"text":{"values":["Sure! You asked ''$initial_question'',
307
+ answering that now...."],"selection_policy":"sequential"},"repeat_input":"$initial_question"},"parent":null,"context":null,"created":"2017-03-13T19:06:36.092Z","updated":"2017-03-22T00:29:10.506Z","metadata":null,"conditions":"$initial_question
308
+ != ''none''","description":null,"dialog_node":"Repeat the initial question","previous_sibling":"Introduce
309
+ the Bot"},{"go_to":{"return":null,"selector":"body","dialog_node":"Figure
310
+ out the property"},"output":{"text":{"values":[""],"selection_policy":"sequential"}},"parent":null,"context":{"listing":"none"},"created":"2017-02-24T00:12:50.933Z","updated":"2017-03-15T18:03:22.058Z","metadata":null,"conditions":"#switch_listings","description":null,"dialog_node":"Switch
311
+ listings","previous_sibling":"Tell me you are happy"},{"go_to":{"return":null,"selector":"condition","dialog_node":"Asks
312
+ a property question"},"output":{"text":{"values":["Great! Yes I know about
313
+ @listing."],"selection_policy":"sequential"}},"parent":null,"context":{"listing":"@listing"},"created":"2017-03-13T16:46:32.427Z","updated":"2017-03-22T00:43:09.589Z","metadata":null,"conditions":"@listing
314
+ || #ask_about_property","description":null,"dialog_node":"Mentions a property","previous_sibling":"Say
315
+ you are confused"},{"go_to":{"return":null,"selector":"condition","dialog_node":"Figure
316
+ out the property"},"output":{},"parent":null,"context":null,"created":"2017-03-13T15:54:26.252Z","updated":"2017-03-13T19:59:08.590Z","metadata":null,"conditions":"#ask_photos
317
+ || #ask_the_price || #ask_zoning || #ask_pets","description":null,"dialog_node":"Asks
318
+ a property question","previous_sibling":"Mentions a property"},{"go_to":{"return":null,"selector":"condition","dialog_node":"Repeat
319
+ the initial question"},"output":{},"parent":"Like that.","context":null,"created":"2017-03-03T03:06:00.818Z","updated":"2017-03-13T19:08:34.698Z","metadata":null,"conditions":"#thumbs_up","description":null,"dialog_node":"Thumbs
320
+ Up","previous_sibling":null},{"go_to":{"return":null,"selector":"condition","dialog_node":"Repeat
321
+ the initial question"},"output":{"text":{"values":[":frown: Sorry you don''t
322
+ approve. I''m ready for your questions now."],"selection_policy":"sequential"}},"parent":"Like
323
+ that.","context":null,"created":"2017-03-03T03:06:26.454Z","updated":"2017-03-13T19:08:46.706Z","metadata":null,"conditions":"#thumbs_down","description":null,"dialog_node":"Thumbs
324
+ Down","previous_sibling":"Thumbs Up"},{"go_to":{"return":null,"selector":"condition","dialog_node":"Talk
325
+ to my boss"},"output":{"message_template":"realtor/intro"},"parent":null,"context":{"listing":"none","introduced":false,"initial_question":"<?input.text?>"},"created":"2017-02-28T22:19:17.893Z","updated":"2017-03-22T00:34:41.279Z","metadata":null,"conditions":"conversation_start","description":null,"dialog_node":"Conversation
326
+ Starts","previous_sibling":null},{"go_to":{"return":null,"selector":"condition","dialog_node":"Talk
327
+ to my boss"},"output":{"text":{"values":[],"selection_policy":"sequential"}},"parent":"Introduce
328
+ the Bot","context":null,"created":"2017-03-13T21:51:06.311Z","updated":"2017-03-13T21:52:10.811Z","metadata":null,"conditions":"#talk_to_my_boss","description":null,"dialog_node":"Talk
329
+ to boss","previous_sibling":"Like that."},{"go_to":{"return":null,"selector":"user_input","dialog_node":"Like
330
+ that."},"output":{"choices":{"text":"I''m not sure what to do here. Can you
331
+ help me get unstuck by tapping the response below?","choices":[{"body":"Like
332
+ this?"}]}},"parent":"Introduce the Bot","context":null,"created":"2017-03-03T03:05:20.320Z","updated":"2017-03-09T00:12:34.812Z","metadata":null,"conditions":"true
333
+ || #confused","description":null,"dialog_node":"Else","previous_sibling":"Talk
334
+ to boss"},{"go_to":{"return":null,"selector":"user_input","dialog_node":"Thumbs
335
+ Up"},"output":{"text":{"values":["Oh, I''m not too sure about that. Just give
336
+ me a :+1: or :-1: to let me know whether you approve or not."],"selection_policy":"sequential"}},"parent":"Like
337
+ that.","context":null,"created":"2017-03-09T00:04:18.627Z","updated":"2017-03-09T00:11:36.155Z","metadata":null,"conditions":"true
338
+ || #confused","description":null,"dialog_node":"node_1_1489017858351","previous_sibling":"Thumbs
339
+ Down"},{"type":"response_condition","go_to":null,"output":{"action":"filter_properties"},"parent":"Ask
340
+ about homes","context":null,"created":"2017-03-13T22:21:55.721Z","updated":"2017-03-13T22:23:07.104Z","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!
341
+ I''m ready for your realty questions now."],"selection_policy":"sequential"}},"parent":"Thumbs
342
+ Up","context":null,"created":"2017-03-13T16:36:16.017Z","updated":"2017-03-13T16:42:01.636Z","metadata":null,"conditions":"","description":null,"dialog_node":"node_4_1489422975792","previous_sibling":null},{"type":"response_condition","go_to":null,"output":{"text":{"values":["I
343
+ am {{bot.name}}."],"selection_policy":"sequential"}},"parent":"Ask who I am","context":null,"created":"2017-02-28T20:46:54.265Z","updated":"2017-03-15T18:23:14.634Z","metadata":null,"conditions":"","description":null,"dialog_node":"node_1_1488314813965","previous_sibling":null},{"type":"response_condition","go_to":null,"output":{"text":{"values":["I
344
+ don''t have any condos for sale."],"selection_policy":"sequential"}},"parent":"Ask
345
+ about homes","context":null,"created":"2017-03-13T16:59:04.420Z","updated":"2017-03-13T16:59:17.539Z","metadata":null,"conditions":"
346
+ @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
347
+ have two properties for sale. 3520 Willows Road and 1003 Brothers Place."],"selection_policy":"sequential"}},"parent":"Ask
348
+ about homes","context":null,"created":"2017-03-13T17:00:04.883Z","updated":"2017-03-13T17:00:20.632Z","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
349
+ understand you want me to find a home that can have pets, but I can''t do
350
+ that right now."],"selection_policy":"sequential"}},"parent":"Ask about homes","context":null,"created":"2017-03-13T17:14:30.553Z","updated":"2017-03-13T17:15:52.919Z","metadata":null,"conditions":"
351
+ @amenities:pets","description":null,"dialog_node":"node_12_1489425270434","previous_sibling":"node_10_1489424380168"},{"type":"response_condition","go_to":null,"output":{"text":{"values":["Oh
352
+ sorry, I don''t have any apartments."],"selection_policy":"sequential"}},"parent":"Ask
353
+ about homes","context":null,"created":"2017-03-13T16:58:42.772Z","updated":"2017-03-13T16:58:59.580Z","metadata":null,"conditions":"
354
+ @property-type:apartment","description":null,"dialog_node":"node_7_1489424322746","previous_sibling":null},{"type":"response_condition","go_to":null,"output":{"text":{"values":["Okay,
355
+ I''ll search for @property-type less than than @sys-number for you. Might
356
+ be a few minutes."],"selection_policy":"sequential"}},"parent":"Ask about
357
+ homes","context":null,"created":"2017-03-13T22:19:26.671Z","updated":"2017-03-13T22:21:01.021Z","metadata":null,"conditions":"@property-type:home
358
+ && @under-filter:under && @sys-number","description":null,"dialog_node":"node_4_1489443566378","previous_sibling":"node_8_1489424344276"},{"type":"response_condition","go_to":null,"output":{"text":{"values":["The
359
+ home I have for sale is 3520 willows road."],"selection_policy":"sequential"}},"parent":"Ask
360
+ about homes","context":null,"created":"2017-03-13T16:59:19.206Z","updated":"2017-03-13T16:59:37.754Z","metadata":null,"conditions":"
361
+ @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,
362
+ I have 1003 Brothers Place for sale."],"selection_policy":"sequential"}},"parent":"Ask
363
+ about homes","context":null,"created":"2017-03-13T16:59:40.350Z","updated":"2017-03-13T17:00:03.343Z","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
364
+ you like.","I''m happy that you''re happy!",":smile:"],"selection_policy":"random"}},"parent":"Tell
365
+ me you are happy","context":null,"created":"2017-02-21T22:03:11.532Z","updated":"2017-02-22T02:14:26.317Z","metadata":null,"conditions":"","description":null,"dialog_node":"node_3_1487714591359","previous_sibling":null}],"workspace_id":"9c9b5bb9-9841-4c08-a69b-1af8797c74c8","counterexamples":[],"status":"Available"}'
366
+ http_version:
367
+ recorded_at: Sat, 25 Mar 2017 01:21:10 GMT
368
+ recorded_with: VCR 3.0.3
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ibm-watson-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bram Whillock
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-03-24 00:00:00.000000000 Z
11
+ date: 2017-03-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: http
@@ -38,6 +38,20 @@ dependencies:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0.10'
41
+ - !ruby/object:Gem::Dependency
42
+ name: active_attr_extended
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '0.9'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '0.9'
41
55
  - !ruby/object:Gem::Dependency
42
56
  name: bundler
43
57
  requirement: !ruby/object:Gem::Requirement
@@ -94,6 +108,34 @@ dependencies:
94
108
  - - "~>"
95
109
  - !ruby/object:Gem::Version
96
110
  version: '0.2'
111
+ - !ruby/object:Gem::Dependency
112
+ name: rspec-middlewares
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
125
+ - !ruby/object:Gem::Dependency
126
+ name: vcr
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ">="
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - ">="
137
+ - !ruby/object:Gem::Version
138
+ version: '0'
97
139
  description: "."
98
140
  email: bramski@gmail.com
99
141
  executables: []
@@ -110,16 +152,18 @@ files:
110
152
  - lib/ibm_watson/base_model.rb
111
153
  - lib/ibm_watson/base_service.rb
112
154
  - lib/ibm_watson/conversation.rb
113
- - lib/ibm_watson/conversation/context.rb
114
155
  - lib/ibm_watson/conversation/dialog_node.rb
115
156
  - lib/ibm_watson/conversation/intent.rb
116
157
  - lib/ibm_watson/conversation/intent_result.rb
117
- - lib/ibm_watson/conversation/output_result.rb
118
158
  - lib/ibm_watson/conversation/result.rb
119
159
  - lib/ibm_watson/conversation/service.rb
120
160
  - lib/ibm_watson/conversation/workspace.rb
121
161
  - lib/ibm_watson/errors.rb
122
162
  - lib/ibm_watson/version.rb
163
+ - spec/ibm_watson/conversation/service_spec.rb
164
+ - spec/spec_helper.rb
165
+ - spec/vcr_cassettes/ibm_watson/conversation/service/ibm_watson_conversation_service_message_.yml
166
+ - spec/vcr_cassettes/ibm_watson/conversation/service/ibm_watson_conversation_service_workspace_.yml
123
167
  homepage: https://github.com/imrealtor/watson-ruby
124
168
  licenses:
125
169
  - MIT
@@ -144,4 +188,8 @@ rubygems_version: 2.5.2
144
188
  signing_key:
145
189
  specification_version: 4
146
190
  summary: IBM Watson services in ruby
147
- test_files: []
191
+ test_files:
192
+ - spec/ibm_watson/conversation/service_spec.rb
193
+ - spec/spec_helper.rb
194
+ - spec/vcr_cassettes/ibm_watson/conversation/service/ibm_watson_conversation_service_message_.yml
195
+ - spec/vcr_cassettes/ibm_watson/conversation/service/ibm_watson_conversation_service_workspace_.yml
@@ -1,35 +0,0 @@
1
- module IBMWatson
2
- module Conversation
3
- class Context < IBMWatson::BaseModel
4
- attribute :conversation_id
5
- attribute :dialog_stack, default: [{ dialog_node: "root" }]
6
- attribute :dialog_turn_counter, default: 1
7
- attribute :dialog_request_counter, default: 1
8
- attribute :context, default: {}
9
- attribute :_node_output_map
10
-
11
- def as_json(*)
12
- {
13
- conversation_id: conversation_id,
14
- system: {
15
- dialog_stack: dialog_stack,
16
- dialog_turn_counter: dialog_turn_counter,
17
- dialog_request_counter: dialog_request_counter,
18
- }
19
- }
20
- end
21
-
22
- def from_json(json)
23
- values = json.deep_symbolize_keys
24
- self.attributes= {
25
- conversation_id: values[:conversation_id],
26
- dialog_stack: values[:system][:dialog_stack],
27
- dialog_turn_counter: values[:system][:dialog_turn_counter],
28
- dialog_request_counter: values[:system][:dialog_request_counter],
29
- _node_output_map: values[:system][:_node_output_map],
30
- context: values[:context]
31
- }
32
- end
33
- end
34
- end
35
- end
@@ -1,14 +0,0 @@
1
- module IBMWatson
2
- module Conversation
3
- class OutputResult < IBMWatson::BaseModel
4
- attribute :log_messages, type: Array
5
- attribute :text, type: Array
6
- attribute :nodes_visited, type: Array
7
- attribute :action, type: String
8
- attribute :template, type: String
9
- attribute :choices, type: Hash
10
- attribute :boolean, type: Hash
11
- attribute :repeat_input, type: String
12
- end
13
- end
14
- end