tr Skip to content

Connect Discord and OpenAI (ChatGPT)

Add OpenAI to your Discord server without writing a bot. Members can ask for images in a dedicated channel, messages are checked by OpenAI's moderation, posts in other languages get an English copy and audio clips become text. FlowMattic runs each workflow on your WordPress site with your own OpenAI key.

6 triggers 22 actions 6 example workflows 3 ready-made templates Unlimited runs

Try a pairing

When this happens in Discord6 triggers

Do this in OpenAI (ChatGPT)10 actions

1. TriggerNew Message Posted to Channel
2. ActionGenerate Image

When Discord fires New Message Posted to Channel, FlowMattic runs Generate Image in OpenAI (ChatGPT) with the data from that event.

You build this in the FlowMattic workflow builder on your own site. See the setup steps

Discord and OpenAI (ChatGPT) workflows you can build

Each one uses only triggers and actions the two integrations ship today, plus FlowMattic's own tools. Where the library has a ready-made template, import it instead of building from scratch.

Discord app icon OpenAI (ChatGPT) app icon Ready-made template

Run an image playground channel with OpenAI

Members type a prompt in one channel. A Filter keeps only real prompts, OpenAI generates the picture and the bot posts it back, which gives creative communities something to play with.

New Message Posted to ChannelFilterGenerate ImageSend Channel Message

View the template
Discord app icon OpenAI (ChatGPT) app icon

Screen new messages with OpenAI moderation

Create Moderation scores each message for harassment, hate and other categories. Flagged ones are copied to a private moderators channel with a link, so a person decides what to do.

New Message Posted to ChannelCreate ModerationFilterSend Channel Message

Discord app icon OpenAI (ChatGPT) app icon

Post a daily AI-written tip to your server

A Schedule asks OpenAI for one short tip on your topic each morning, so a learning or product community gets a regular post that starts conversations.

ScheduleGenerate ContentSend Channel Message

Discord app icon OpenAI (ChatGPT) app icon

Translate posts from an international channel into English

Servers with members across countries can keep a local-language channel. Ask Chat GPT translates each post and the bot copies it, with the author's name, to an English channel.

New Message Posted to ChannelAsk Chat GPTSend Channel Message

Discord app icon OpenAI (ChatGPT) app icon

Transcribe audio clips members post

Voice notes are quick to send but hard to skim. Create Transcription turns an attached audio file into text, posted under the clip so everyone can read and search it.

New Message Posted to ChannelFilterCreate TranscriptionSend Channel Message

Discord app icon OpenAI (ChatGPT) app icon

Turn bug screenshots into written forum reports

When a member drops a screenshot in the bug channel, Analyze Image describes what it shows and the bot opens a forum post with that description, so the dev team gets a searchable report.

New Message Posted to ChannelAnalyze ImageCreate new Forum Post

Set up: an image playground channel

At the end, prompts posted in your chosen channel come back as OpenAI images in the same channel.

  1. Connect both apps

    Under Connects, add Discord for your server and OpenAI (ChatGPT) with an API key from your OpenAI account.

  2. Watch the channel

    Create a workflow with Discord New Message Posted to Channel, pick a channel set aside for images and post a test prompt.

  3. Filter the prompts

    Add a Filter that continues only when the author is not the bot and the message is long enough to be a prompt.

  4. Generate and post

    Add OpenAI Generate Image with the message as the prompt, then Discord Send Channel Message with the image link. Test and switch on.

Import the ready-made template Beginner, about 8 min to set up
Run an image playground channel with OpenAI Template
  1. Discord app icon 1. Trigger in Discord New Message Posted to Channel
  2. 2. FlowMattic tool Filter
  3. OpenAI (ChatGPT) app icon 3. Action in OpenAI (ChatGPT) Generate Image
  4. Discord app icon 4. Action in Discord Send Channel Message

    Fields mapped from the earlier steps (a typical setup)

    From DiscordTo Discord
    Message contentImage prompt
    Author nameReply: requested by
    Image URLReply: image
Built on the FlowMattic canvas. Test each step with real data, then switch the workflow on.

Triggers and actions in this pair

A trigger starts a workflow. An action is something FlowMattic does in the app as a step.

Good to know

  • OpenAI has no triggers here, so workflows start from a Discord event, a Schedule or a Webhook.
  • When the bot posts in the channel it watches, its own message starts the workflow again. Filter out messages written by the bot.
  • Every OpenAI request is billed to your API key, and images cost more than text. Keep the image workflow to one channel and add a Filter on who can use it.
  • Moderation scores are a signal, not a verdict. Send flagged messages to moderators rather than removing roles or messages automatically.

Triggers (6)

  • New Message Posted to ChannelTriggers when a new message is posted to a specific text channel
  • New Forum PostTriggers when a new Post is created on a Forum
  • New Forum MessageTriggers when a new Message is created on a Forum Post
  • New User AddedTriggers when a new user joins the Discord Server
  • New Mention in Text and AnnouncementsTriggers when a User or Role is mentioned in a Text or Announcements channel
  • New Mention in Threads and Forum PostsTriggers when a User or Role is mentioned in a Threads or Forum Posts channel

Actions (12)

  • Add RoleAdd a role to a user
  • Remove User RoleRemove a chosen role from the specified user
  • Send Channel MessagePost a new message to a specific #channel you choose
  • Send message in Forum PostSend a new message in a specific Forum Post
  • Create new Forum PostCreate a new Post on a Forum Channel
  • Create ChannelCreate a new channel or category
  • Create Channel CategoryCreate a new channel category that hold other channels
  • Rename ChannelRename a channel to a specific name you choose
  • Send Direct MessageSend a direct message to a specific user
  • Find UserFind an existing user by name
  • Find ChannelFind an existing channel by matching name
  • Get Channel By NameGet an existing channel by exact name
OpenAI (ChatGPT) app icon

OpenAI (ChatGPT)

Integration page

Actions (10)

  • Generate ContentGenerate content based on the prompt provided
  • Generate ImageGenerate image based on the prompt provided
  • Ask Chat GPTAsk anything to Chat GPT ;)
  • Generate Text to SpeechGenerates audio from the input text
  • Create TranscriptionTranscribes audio into the input language
  • Create TranslationTranslate the given audio to english
  • Create ModerationClassifies if text violates OpenAI's Content Policy
  • Analyze ImageAsks a vision model a question about an image given by URL
  • Create Voice ConsentRecords permission to clone a voice from a consent recording, the first step of a custom voice
  • Create VoiceCreates a custom voice from an audio sample and a consent id, usable in Generate Text to Speech

Why run this pair with FlowMattic

Discord and OpenAI (ChatGPT) connect through FlowMattic on your own site, with no separate automation account in the middle and no charge per run.

Server features without hosting a bot

Image, translation and transcription commands run as workflows on your WordPress site, so there is no bot server to keep online.

You choose the channels and limits

Filters decide which channels, members and messages reach OpenAI, so your API bill and your server stay under control.

No fee per message

FlowMattic has unlimited runs on every plan, so a busy server pays only what OpenAI charges for each request.

Common questions

Can I use ChatGPT in my Discord server with FlowMattic?

Yes. Trigger on New Message Posted to Channel, send the text to Ask Chat GPT or Generate Content, and post the answer with Send Channel Message. A Filter decides which messages the bot answers.

Can members generate images in Discord?

Yes. Watch one channel for prompts, pass each message to Generate Image and post the result back. Limit it to one channel or a role, because each image is billed to your OpenAI key.

Does the moderation check delete messages?

Not on its own. Create Moderation returns scores, and these examples send flagged messages to moderators. Discord has no delete message action here, so removal stays with your moderators.

Can the bot reply in a forum thread instead of a channel?

Yes. Use Send message in Forum Post for replies inside an existing thread, or Create new Forum Post to start a new one, as in the screenshot report example.

What does OpenAI receive from my server?

Only what you put in the step, such as the message text or an attachment link. Author names, roles and other fields stay out unless you add them to the prompt.

Did not find your answer? You can browse the help center or ask us directly.

Start automating Discord and OpenAI (ChatGPT)

Install FlowMattic, connect both accounts and import a template. Every run stays on your own server.

30-day money-back guarantee Unlimited workflows and runs Self-hosted

Reviewed 27 Oct 2026. The example workflows are written with AI from the real triggers and actions of both integrations and checked against them. Discord integration 1.1.1, OpenAI (ChatGPT) integration 2.3.0.