watson-developer-cloud / conversation-connector

The Conversation connector is a set of components that mediate communication between your Conversation workspace and a Slack or Facebook app. Use the connector to deploy a chat bot that Slack or Facebook Messenger users can interact with.
Apache License 2.0
28 stars 62 forks source link

Slack deploy does not store bot_users to Cloudant anymore #66

Closed data-henrik closed 5 years ago

data-henrik commented 6 years ago

I was contacted because the tutorial https://console.bluemix.net/docs/tutorials/slack-chatbot-database-watson.html#build-a-database-driven-slackbot does not work anymore. After debugging, we found out that the part "bot_users" along with access token and bot access token are not stored in the authdb document.

After manually creating such a snippet and patching the doc in Cloudant, it worked again.

This is what we added:

      "WxxIDfromError": {
        "access_token": "xoxp-183775443795-111118049-1111110041348-bd913d9618",
        "bot_access_token": "xoxb-1837111111-11111-1111OwG"
      }
    }
vickyni commented 6 years ago

I followed the steps on https://console.stage1.bluemix.net/docs/tutorials/slack-chatbot-database-watson.html#build-a-database-driven-slackbot to build slack bot for test first, but there was no response. Then come to the author of this tutorial for help. With Henrik's help, we checked step by step for several times, finally we found that was due to the bot user info missing. We fixed this issue manually for temp by adding the needed info. But the final solution should be fix that bug. Thanks Henrik. Thanks team!