Facebook Messenger integration with Cisco Unified CCX Web Chat (via Cisco SocialMiner)
While this app is ready to be hosted on Heroku (see Procfile), it can be hosted on any application/hosting environment or container framework.
The only considerations for the infrastructure are public addressibility and connectivity with
- facebook.com
- your SocialMiner instance
Cisco SocialMiner should ideally be deployed on the DMZ such that it can be addressible and connected from anywhere in the public Internet, as well as have a direct connectivity into the enterprise network where Unified CCX servers and Agents are located.
If your organization has not deployed SocialMiner in the DMZ, you will need to use a forwarding/reverse proxy (such as ngrok or nginx.
See the Getting Started guides by Facebook on how to create a facebook app (bot), acquire required tokens etc.
See
- Cisco Unified CCX Guides, Release 11.6(1)
- Cisco SocialMiner Guides, Release 11.6(1)
- SocialMiner on Cisco DevNet
The following environment variables are required to be defined (in process.env
) to launch and run the app.
Variable | Description |
---|---|
PORT | A 16-bit UNIX port number where this app will bind to |
FB_PAGE_ACCESS_TOKEN | The page access token issued by Facebook when you configure messenger for a page |
FB_VERIFICATION_TOKEN | A token that is to be provided by your app when Facebook challenges the validity of your webhook URL |
VIRTUAL_ASSISTANT_NAME | The name of your virtual assistant (E.g. Siri, Alexa etc.) |
SOCIALMINER_HOST | A valid fully qualified hostname of your SocialMiner server |
SOCIALMINER_CHAT_FEED_ID | The ID of the chat feed in SocialMiner. Can be obtained by calling the /feed API on SocialMiner |
CCX_QUEUE_ID | The ID of the CCX Chat Contact Service Queue. Can be obtained by calling the /csq/ API on CCX |
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Cisco®, Cisco Unified CCX®, Cisco SocialMiner® etc. are registered trademarks of Cisco Systems, Inc.