question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Slack] Skill not answering messages to Virtual Assistant/Root Bot connected to Slack

See original GitHub issue

Version

image

Describe the bug

I have a Virtual Assistant created from VSIX, a Skill created from VSIX (C# both) and they are connected. When I test this locally, it works just perfectly, but when I follow the Slack Adapter Sample and implement the SlackAdapter and SlackController in the Virtual Assistant, the Skill messages never show up in Slack. I tried debugging both locally, using Ngrok, and I can see how the Skill is responding to api/skill endpoint with a 500 Internal Server Error.

To Reproduce

Steps to reproduce the behavior:

  1. Create Virtual Assistant with VSIX
  2. Create Skill with VSIX
  3. Deploy Virtual Assistant with the deploy.ps1 script located in ./Deployment/Scripts/
  4. Deploy Skill with the deploy.ps1 script located in ./Deployment/Scripts/
  5. Connect Skill with Virtual Assistant using Botskills
  6. Implement SlackAdapter and SlackController
  7. Create Slack App and configure Virtual Assistant with Slack configuration
  8. Publish changes in the Virtual Assistant
  9. Test in Slack

Expected behavior

Just like in the Emulator, I would expect to receive the Skill messages.

Screenshots

If applicable, add screenshots to help explain your problem. image image (1)

Additional context

Add any other context about the problem here.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
dfavrettocommented, Mar 11, 2021

Hi @Batta32, thanks for the quick answer! I tried myself the sample 80.skills-simple-bot-to-bot and found that it also has the same problem when using Slack and communicating with a Skill. As you can see in this screenshot, Ngrok is receiving the 500 Internal Server Error response:

image

I followed the Sample 80’s instructions, created 2 App Registrations for each Bot, I run Ngrok in port 3978 and configured a Slack app with that URL. When I invoked the Skill in Slack, I had no answer.

7de90f80-492a-4b54-8d08-b1fb51ec1cde_image

Previously I had tested in the Emulator and everything worked just fine.

image

The only changes I made to the Bots are:

  1. Add the Slack settings in appsettings.json file
  2. Copy the SlackController and SlackAdapter from sample 60.slack-adapter
  3. Inject the SlackAdapter in the Startup just like in the 60.slack-adapter

Some screenshots of the changes applied:

appsettings.json

beabb173-fe49-46ce-aaaf-de1dcb353924_image

SlackAdapter

b1ab0b44-b72a-401c-84aa-89915b7b7be8_image

SlackController

419393f5-3d88-4a90-a2b8-795a8532a805_image

Startup

93a0df46-c67e-4281-ac12-dfe97a3e694b_image

If you need anything else just let me know. Thanks for your time! 😊

0reactions
pavolumcommented, Apr 22, 2021

This issue should be resolved with the merged PR. Going to close the issue. If you pull in the latest bits that have the fix and this issue persists then reopen

Read more comments on GitHub >

github_iconTop Results From Across the Web

Enabling interactions with bots
Enable conversations between users and apps in Slack by building bots. A conversation between @celeste and @officebot ...
Read more >
Can't send direct message to Slack bot, feature turned off
Go to your App Settings page and go to App Home and set the checkbox for "Allow users to send Slash commands and...
Read more >
Using the Answer Bot for Slack integration
Answer Bot only listens on Slack channels and does not interact with direct messages in Slack. To ask a question using Answer Bot...
Read more >
Add ChatBot to Slack
Choose the app. Choose an option from the menu and add the app. For the bot to answer, you need to use the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found