# \[SOLVED\] Empty response for slash command

**URL:** <https://forum.mattermost.com/t/solved-empty-response-for-slash-command/2315>\
**Category:** Troubleshooting\
**Created:** [October 3, 2016, 3:50pm UTC](https://forum.mattermost.com/t/solved-empty-response-for-slash-command/2315 "2016-10-03T15:50:45Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![lmsakiha](https://avatars.discourse-cdn.com/v4/letter/l/73ab20/32.png) [@lmsakiha](https://forum.mattermost.com/u/lmsakiha)\
**Post date:** [October 3, 2016, 3:50pm UTC](https://forum.mattermost.com/t/solved-empty-response-for-slash-command/2315/1 "2016-10-03T15:50:45Z")

</div>

Hi everyone,

Please need your help. I am pretty new in Mattermost and node-red and I am trying to create a slash command for mattermost using Nodered in Bluemix. I already make the slash command work with Slack, but when I tried the same with mattermost, I have the following response: “Command with a trigger of ‘wmax’ returned an empty response”. Checking the debugs nodes in Node-red show me the same for both cases (Slack and Mattermost).

Thanks in advance,

Regards  
Luis

---

<div class="post-metadata">

**Author:** ![ngcnelson](https://avatars.discourse-cdn.com/v4/letter/n/838e76/32.png) [@ngcnelson](https://forum.mattermost.com/u/ngcnelson)\
**Post date:** [October 3, 2016, 7:03pm UTC](https://forum.mattermost.com/t/solved-empty-response-for-slash-command/2315/2 "2016-10-03T19:03:29Z")

</div>

Hi,  
I don’t know if this will help you, but it helped me. Slack assumes some defaults, for example for the “response\_type” it is assumed “ephemeral” (only to the user that initiated the command). I had some integration already with Slack and I was getting empty results in mattermost. As soon as I specified the response\_type then it worked in mattermost.

---

<div class="post-metadata">

**Author:** ![lmsakiha](https://avatars.discourse-cdn.com/v4/letter/l/73ab20/32.png) [@lmsakiha](https://forum.mattermost.com/u/lmsakiha)\
**Post date:** [October 3, 2016, 9:10pm UTC](https://forum.mattermost.com/t/solved-empty-response-for-slash-command/2315/3 "2016-10-03T21:10:57Z")

</div>

Hi Nelson,

thanks a lot! it worked perfectly!

Thanks,  
Luis

---

<div class="post-metadata">

**Author:** ![ngcnelson](https://avatars.discourse-cdn.com/v4/letter/n/838e76/32.png) [@ngcnelson](https://forum.mattermost.com/u/ngcnelson)\
**Post date:** [October 3, 2016, 9:29pm UTC](https://forum.mattermost.com/t/solved-empty-response-for-slash-command/2315/4 "2016-10-03T21:29:43Z")

</div>

You are welcome. I think it is customary (I’m new here too) to put [SOLVED] in the subject so that others can see if this solution works for them.  
Have a good one!

---

<div class="post-metadata">

**Author:** ![lmsakiha](https://avatars.discourse-cdn.com/v4/letter/l/73ab20/32.png) [@lmsakiha](https://forum.mattermost.com/u/lmsakiha)\
**Post date:** [October 3, 2016, 10:23pm UTC](https://forum.mattermost.com/t/solved-empty-response-for-slash-command/2315/5 "2016-10-03T22:23:18Z")

</div>

done Nelson, thanks a lot!
