Skip to main content

GUIDE: Use OpenAI in Slack


Troy Tessalone
Forum|alt.badge.img+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.

 

Did this topic help you find an answer to your question?
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

  • New
  • 2 replies
  • January 16, 2023

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


Troy Tessalone
Forum|alt.badge.img+14
  • Author
  • Zapier Expert
  • 30739 replies
  • January 16, 2023

Hi @Leo234432 

Good question.

 

For step 2:

 

For step 3:

 


  • New
  • 2 replies
  • January 16, 2023

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? ;


Troy Tessalone
Forum|alt.badge.img+14
  • Author
  • Zapier Expert
  • 30739 replies
  • January 16, 2023

@Leo234432 

Try using Paths in the Zap.