https://discord.gg/botpress logo
Auto message in slack when user joins workspace.
# 🤝help
d
I have it setup but I am getting this error, I have tried many workarounds. Anything to help? Here are the errors I am getting (attached) it looks like it is properly receiving the req however it is not storing any of the variables. i have a custom express server to send a fixed message but i also have a few start dm cards which are using these: To get the Slack conversation ID, you can read the following variable: {{ event.tags.conversation["slack:id"] }}. To get the Slack conversation thread ID (if it is a thread), you can read the following variable: {{ event.tags.conversation["slack:thread"] }}. To get the Slack user ID, you can read the following variable: {{ event.tags.user["slack:id"] }}. this one says it is undefined To get the Slack message ID, you can read the following variable: {{ event.tags.message["slack:id"] }}. and these: {{event.tags.user}} {{event.userId}} https://cdn.discordapp.com/attachments/1376988419674345483/1376988426967978116/message.txt?ex=683753e8&is=68360268&hm=83a59c0dd9b72e9512a748afe4ff56c83620b2232dea3f6faaa4f4a8feaf111a&
anybody seen this before?
found it: {{event.payload.target.userId}} even though it says it is undefiend
nevermind does not work because of refresh token
support?
l
Your custom endpoint is sending data to a slack trigger? If that is the case, then everything that you tried will not work. The only thing that came close was event.payload.targer.userId. This also will depend on the payload you are sending to the trigger's endpoint This event "Member joined workspace" is a member joining Slack or Botpress Bot? From your workflow it looks like when someone is joining your slack workspace, you want to send them a start conversation and then to Autonomous Node. This may not work as desired. The trigger is an incoming call for a new user in slack, that may also mean that the user never had an interaction with the bot. This also means that the bot does not have a conversationId and userId for this user. Even if you set a manual one for testing, it will work up to send DM card. When the user replies, bot is going to look for START as the user sending the DM card and the user responding to the DM card are not the same
Hope this helps
4 Views