summaryrefslogtreecommitdiff
path: root/addons/mail_bot/data/mailbot_data.xml
diff options
context:
space:
mode:
authorXavierDo <xdo@odoo.com>2018-08-02 13:18:53 +0200
committerThibault Delavallée <tde@odoo.com>2018-08-10 13:33:28 +0200
commitcf505c36985221819139ce30d7f03e6e51ec0298 (patch)
tree39c7cd3e7cff094a8b4b231aa87eb3e08b62cbbf /addons/mail_bot/data/mailbot_data.xml
parentc446fb20015d489d9c38e97e10f25cf2e5e3efd7 (diff)
[ADD] mail_bot, im_livechat_mail_bot: add Odoobot, your new best friend
Purpose of this commit is to improve onboarding with a wow effect and a bot to test the Discuss app. Otherwise new users have nobody to talk to. Retention will be improved by both increasing interactions and onboarding of Discuss features. This commit adds a simple bot in discuss. It answers some questions, helps users getting their hand on discuss and eases the onboarding. In this version, the flow is quite simple, and only im_livechat adds some logic in order to show canned response. The logic is contained in new modules: mail_bot and im_livechat_mail_bot in order to keep everything well separated. It also allows users to remove the mailbot if they do not want to keep this functionality. Odoobot will only answer if he is in the onboarding conversation (alone with a user in a channel of type chat) or if a user pings odoobot. Odoobot logic applies to both standard chatter / channel messages and also transient messages (like help commands). Specifications * 2 minutes after first sign in, users will receive a direct chat from Odoobot; * make Odoobot an archived partner; * scenario * Odoobot: "Hello, I'm here to help you discover chat features. Try answering me with an emoji :)"; * User: Send emoji * Odoobot: "Great! :) Did you notice that you can also send attachments, like a picture of your cute dog? Try it!" * Odoobot: "Not a cute dog, but you get it :) To access special features, start your sentence with "/" (I.E. /help)"" * User: /help * Auto message then Odoobot: "Wow you're a natural! As a channel usually contain a lot of users, you can grab the attention with a ping. Try to ping me with @Odoobot!" * User: @Odoobot lorem ipsum * if Livechat installed * add 2 demo canned response so it does not look weird (like "Hello, how may I help you?" and "Have a nice day!") * Odoobot: "Perfect! <br> Try to type ":" to use canned responses." * User tries canned * Odoobot: "Good, you can customize your canned responses in the live chat application. <br><br> + réponse suivante" * Odoobot: "There's 3 different ways in Odoo to interact with your colleagues: via this chat window, [img of chat window] via the Discuss application [img of Discuss app + icon on it] or via the chatter [img of the chatter]. Aaaaand that's it! Enjoy discovering Odoo! :)" * random answers to ping/bad answer * "Mmmmh I'm not sure what you mean.. Can you try again?" * "I'm afraid I don't understand. Sorry!" * when someone pings @OdooBot with no reason: Odoobot: Yaaaay that's me! [party emoji] * fun stuff to add for some answer * User: i love you / love * Odoobot: Aaaaaw that's really cute but, you know, bots don't work that way. You're too human for me! Let's keep it professional <3 * User: Fuck * Odoobot: That's not a really nice thing to say, you know? I'm a bot but I have feelings, ok?! </3 This commit is linked to task ID 1838588 and PR #25075.
Diffstat (limited to 'addons/mail_bot/data/mailbot_data.xml')
-rw-r--r--addons/mail_bot/data/mailbot_data.xml12
1 files changed, 12 insertions, 0 deletions
diff --git a/addons/mail_bot/data/mailbot_data.xml b/addons/mail_bot/data/mailbot_data.xml
new file mode 100644
index 00000000000..96fe760ca1f
--- /dev/null
+++ b/addons/mail_bot/data/mailbot_data.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="utf-8"?>
+<odoo>
+ <data>
+ <record id="partner_odoobot" model="res.partner">
+ <field name="name">OdooBot</field>
+ <field name="customer" eval="False"/>
+ <field name="email">OdooBot</field>
+ <field name="active" eval="False"/>
+ <field name="image" type="base64" file="mail/static/src/img/odoobot.png"/>
+ </record>
+ </data>
+</odoo>