We are thinking through an integration of RC with WP - main ideas are:
- WP will be configured to require all users to be registered/logged in.
- We’d want to then deploy LiveChat on our WP site, and have a Hubot (or some other bot) that is logged into our RC to be appointed as the agent for that LiveChat.
- Users can then interact with the bot via that LiveChat.
So far so easy…
Next step gets trickier - we need that bot to know the user’s identity - in the same way that the bot would know their identity if the user had DMed them from within RC, rather than from a LiveChat instance. THis enables the bot to personalise the content and scripting it uses to talk with that LiveChat user.
I think that this should be achievable by using OAuth - either we have RC relying on WP for login, or potentially we do it the other way so that WP relies on RC. Either way, because the user must login before accessing LiveChat, we should be able to pass the bot a user ID that it can use to personalise the messaging.
Is this possible in practice? Has anyone done anything like this before?