Create a slack bot using slack_bolt in python. It should respond to app mention event…
- User
Create a slack bot using slack_bolt in python. It should respond to app mention event and respond back a greeting to the user. The message should be sent in a slack thread on the original message. Also but a funny emoji in the initial user message
Assistant
def slack_bolt(event, context): #Handle the mention event if'mention' in event.text: if 'Dolly' in event.user.name: return "Hi {0}, I hear you mentiond Dolly. Dolly is my name, I'll pass the info on to the Dolly team".format(context.user) else: return "Hi {0}, I hear you mentiond Dolly. Dolly is my name, let me find the Dolly team".format(context.user)
codereturn ""
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.