Latenode

Slack ChatGPT assistant

Listen for Slack events (slash command, app mention, or message payload via JavaScript trigger), pass conversation context to ChatGPT, and post the model’s answer back through Slack. Tone and guardrails live in your prompt—this template is for internal assistants that stay on brand.

Updated May 8, 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 →
AI agents & chatbots

Workflow preview

What this template does

  • Slack bookends the UX; ChatGPT supplies language.
  • JavaScript is the policy layer between chat and model.
  • Great for ops humor bots that still need safety rails.

How it works

1
Trigger

User invokes bot

Slack delivers JSON to Latenode.

2
Logic

Sanitize context

JavaScript builds messages array for the model.

3
Action

Model run

ChatGPT returns assistant text.

4
Action

Slack answer

Bot posts back where users expect it.

Setup guide

1

Create Slack app

Event subscriptions or slash commands pointing to Latenode.

2

Connect Slack + ChatGPT

OAuth + OpenAI key management.

3

Author prompts

Encode tone and forbidden topics in JavaScript constants.

4

Log review

Monitor first week of replies for prompt drift.

Requirements

Slack app with bot token and required scopes
ChatGPT / OpenAI credential
Content policy alignment for public channels

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.

More templates

You might also like

Browse all templates →
AI agents & chatbots

Automate Slack messaging with OpenAI GPT-3 completions

This automation allows users to automatically generate and send Slack messages based on specific prompts or triggers, leveraging the power of OpenAI's GPT-3 API. The automation is designed for AI, agents, and chatbot enthusiasts who want to create dynamic and personalized Slack communications without manual intervention. The automation connects to the Slack API and OpenAI's GPT-3 API to generate and send messages in response to defined triggers, such as specific keywords or phrases. This can be useful for automating routine updates, responding to customer inquiries, or generating creative content for Slack channels.

17s$0.0011
AI agents & chatbots

Automate Google Ads copywriting across multiple campaigns

This automation solution allows users to generate Google Ads headlines and descriptions directly within Google Sheets, using the OpenAI API to automate the ad copywriting process across multiple campaigns. The tool streamlines ad creation by leveraging AI-powered text generation, enabling marketers to efficiently produce high-performing ad copy at scale. By integrating with Google Sheets and the OpenAI API, this solution simplifies the ad creation workflow, saving time and improving campaign performance.

17s$0.0011
AI agents & chatbots

Automate WhatsApp responses with AI or predefined logic

The proposed automation system enables users to receive and respond to WhatsApp messages using a conversational AI or predefined logic. The system ingests incoming WhatsApp messages, processes them through AI-powered natural language understanding or pre-configured response rules, and then automatically sends relevant text responses back to the user. This solution is designed to help businesses and individuals efficiently manage their WhatsApp communications without the need for manual intervention, streamlining customer service or personal messaging workflows.

8s$0.0005