Latenode

Slack ChatGPT assistant

This template starts when Slack records a mention or a channel message, builds a prompt in JavaScript, and asks ChatGPT for a reply.

Slack posts that answer in the same channel or thread. Connect Slack and pick the channel. ChatGPT is a Latenode AI step, so you do not paste an OpenAI key. Put tone and off-limits topics in the JavaScript prompt.

Updated Sep 16, 2026Est. run: 19sEst. cost: $0.0012
How Latenode estimates time and cost

Latenode bills workflow runtime in CPU seconds. The first 10,000 CPU seconds are free each month, then usage follows pay-as-you-go CPU-second pricing. Plug-and-Play (PnP) AI nodes are billed separately—each PnP token is $1 USD, charged pay-as-you-go at vendor cost plus a small processing fee, with no API keys required.

Full pricing — how CPU seconds work →

Workflow preview

What this template does

  • Replies in Slack with ChatGPT after a mention or channel message
  • Keeps tone and guardrails in JavaScript
  • Posts the answer where the user wrote
  • Uses ChatGPT as a Latenode AI step

How it works

1
Trigger

Catch the Slack mention

The scenario starts when someone mentions the bot or posts in the Slack channel you watch.

2
Logic

Prepare the prompt

JavaScript trims recent messages, injects your tone, and drops secrets before ChatGPT runs.

3
AI

Write the reply

ChatGPT returns assistant text from that prompt. You do not paste an OpenAI key.

4
Action

Post in Slack

Slack sends the answer in the channel or thread where the user wrote.

Setup guide

1

Connect Slack

Add a Slack connection. Watch new mentions or new messages in the channel where the assistant should reply.

2

Set tone in JavaScript

Add a JavaScript node that builds the messages array. Put system instructions, tone, and topics to skip in that node.

3

Wire ChatGPT and reply

Send the JavaScript payload to ChatGPT, then post the answer with a Slack channel message. Mention the bot once and confirm the reply lands in the thread.

Requirements

A Slack workspace and channel Latenode can read and post to
A Slack connection in Latenode
Tone and topics you want the assistant to follow, stored in the JavaScript prompt

FAQ

Common questions about this template

Each run uses credits on your Latenode plan. We charge for processing time (1 credit = 30 seconds). Your actual cost depends on your plan and how long the run takes. See pricing plans for plans and how credits work. Plug-and-Play AI nodes are billed separately.