wordhop 0.0.3 → 0.0.4

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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +18 -6
  3. data/lib/wordhop.rb +5 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9fd062193fa74d0eac121d686cbc89172c85aada
4
- data.tar.gz: c25c3973a3fc9a36a518025c0aacd1cd3334cbe1
3
+ metadata.gz: d414692544312686541f98275120baed822a3ae9
4
+ data.tar.gz: 0ea707a1fb5351c9b6b0b46ef4dc6ba8e74b8fb7
5
5
  SHA512:
6
- metadata.gz: 052054010ab217213318d9508c40e5a0a07da4750a0d349e66e409df34c3088474d3689cfc5d0379e8238741cecac5610e24e1ab4923cee93f2d194865ff166e
7
- data.tar.gz: 22bc9c48b7931d7ae0628764865c167089af541fe7fa2b24bc7dc5ae13a0d3d2635611b408f257eaf0e89a537c020ae0da5d842656fbd3551b08a071d48bbd28
6
+ metadata.gz: 184cdbe034124e0bf2aeca82f13d0d35c8a046f55cb23bd8fa582edd5734daa4c568f0197aec2453fe95c125f769288455eec4c58a763ae429faf4819e58a3b5
7
+ data.tar.gz: 7fd437223db01d4e6a3b8b73d71f2911e7c631cf9fa14994dc7bdfdde31906c3a66b1029139af73ea65ec6131504491a65b4408800e74bb9a506593dbf306864
data/README.md CHANGED
@@ -1,11 +1,21 @@
1
- # [Wordhop](https://www.wordhop.io) - Monitor and Optimize Your Conversational Experience
1
+ # [Wordhop](https://www.wordhop.io) - A Toolkit For Human + AI Conversational Experiences
2
2
  ## For Chatbots Built in Ruby
3
3
 
4
- Wordhop monitors your Chatbot for friction in your conversational experience and alerts you on Slack in real-time. Simply add Wordhop to Slack and then drop in a couple of lines of code into your Chatbot. Wordhop integrates in minutes, and begins working immediately. From Slack, you can see full transcripts of all your bot's conversations, pause and take over your bot, then hand the conversation back to your bot. Actionable analytics also show you and your Slack team where you can optimize your conversational experience and measure results.
4
+ Bots can help your business respond faster and scale your service delivery at a lower cost, but bots can't empathize like humans, or solve overly complex customer problems. With Wordhop, you can monitor your bots for communication problems and take over live to engage your customers.
5
+ It includes a number of smart alerts out of the box, and you can create your own alerts. You can resume automated messaging manually, or if you stop engaging your user, the bot will automatically resume. This is how we see humans and AI collaborating on customer service in the messaging era:
6
+
7
+ ![Solution](https://cloud.githubusercontent.com/assets/7429980/22609969/491afe58-ea31-11e6-8928-27e1a1f1d6bd.png)
8
+
9
+
10
+
11
+ You can integrate Wordhop in minutes and it begins working immediately, enabling you to deliver exceptional human + AI conversational experiences.
12
+ This module has been tested with Messenger, Slack, Skype, and Microsoft Webchat. Please see our [examples](./examples/).
13
+ It supports bot developers working in Node, Python and Ruby.
5
14
 
6
15
  ### What you can do with Wordhop:
7
- * [See Key Features](https://developer.wordhop.io)
8
- * [Watch a Demo](https://www.youtube.com/watch?v=TAcwr3s9l4o)
16
+ You can view a full list of features at (https://www.wordhop.io). It's core purpose can be explained with this single GIF
17
+
18
+ ![Takeover](https://cloud.githubusercontent.com/assets/7429980/22609935/22e39740-ea31-11e6-8286-e5a3ae545565.gif)
9
19
 
10
20
  ### What you need to get started:
11
21
  * [A Slack Account](http://www.slack.com)
@@ -121,7 +131,7 @@ def sendIt(channel, text)
121
131
  # schema matches Messenger
122
132
  outgoingMessage = {recipient: {id: channel},message: {text: text}}
123
133
  Wordhop.hopOut(outgoingMessage)
124
- bot.send_text_message(channel, text) # <= example of bot sending reply
134
+ client.say({'text': text, 'channel': channel}) # <= example of bot sending reply
125
135
  ...
126
136
  ```
127
137
 
@@ -156,7 +166,9 @@ To enable the ability to have a human take over your bot, add the following code
156
166
  ```ruby
157
167
  # Handle forwarding the messages sent by a human through your bot
158
168
  Wordhop.on :'chat response' do |data|
159
- Bot.deliver(data, access_token: ENV['ACCESS_TOKEN']) # <= example of bot sending message
169
+ text = data['text']
170
+ channel = data['channel']
171
+ client.say({'text': text, 'channel': channel}) # <= example of bot sending message
160
172
  end
161
173
  ```
162
174
 
@@ -10,7 +10,7 @@ module Wordhop
10
10
  base_uri 'https://wordhopapi.herokuapp.com/api/v1'
11
11
  end
12
12
 
13
- EVENTS = [:'chat response', :'socket_id_set'].freeze
13
+ EVENTS = [:'chat response', :'socket_id_set', :'channel update'].freeze
14
14
 
15
15
  class << self
16
16
 
@@ -74,6 +74,10 @@ module Wordhop
74
74
  Wordhop.trigger(:'chat response', messageData)
75
75
  end
76
76
 
77
+ socket.on :'channel update' do |data|
78
+ Wordhop.trigger(:'channel update', data)
79
+ end
80
+
77
81
  def on(event, &block)
78
82
  unless EVENTS.include? event
79
83
  raise ArgumentError,
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wordhop
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Nathanson