GUIDE: Use OpenAI in Slack

  • 9 January 2023
  • 4 replies
  • 238 views

Userlevel 7
Badge +14

GUIDE: Use OpenAI in Slack

 

Zap

Get the Zap: https://zapier.com/shared/11d3eaab5b0cf67f33397ba21daab3b239bbb781

 

Purpose

Provide a prompt in the form of a question or instructions as a message in a specific Slack Channel and get an autoreply message as a thread.

 

Prerequisites

  1. Zapier paid plan
  2. OpenAI paid account
  3. Slack Workspace

 

Zap Steps

Steps

  1. Trigger: Slack - New Message Posted to Channel
  2. Action: OpenAI - Send Prompt
  3. Action: Slack - Send Channel Message (as Thread)

 

Step 3

 

EXAMPLE: Slack Channel Message

Used to trigger the Zap with a prompt for OpenAI.

 

EXAMPLE: Slack Channel Message Thread Reply

Zap sends an autoreply message thread with the results from the OpenAI prompt.

 


This post has been closed for comments. Please create a new post if you need help or have a question about this topic.

4 replies

Userlevel 1

Hi thank you very much for posting this. A few questions from my side:

  1. In section 2. Which prompt should I choose? Raw text? I want that the message sent to the channel will be passed on to chatgpt
  2. What message text do I have to use in step 3?

Many thanks

Userlevel 7
Badge +14

Hi @Leo234432 

Good question.

 

For step 2:

 

For step 3:

 

Userlevel 1

Amazing it is working! Thank you very much!

One more thing. I am planning to include both DALL E and Chat in one channel. How can I include a regex such as chat:messagehere to route the traffic to one or the other model? ;

Userlevel 7
Badge +14

@Leo234432 

Try using Paths in the Zap.