Every day, AI picks a popular meme template, captions it on your topic and posts the finished meme to your Discord channel.

UsesClaudeDiscord

Post a daily marketing meme to Discord

Every day at 10:00, the meme templates people caption most on Imgflip are fetched, AI picks one that suits your topic and writes the text for each of its boxes, Imgflip sets the captions on the picture, and the finished meme is posted to your Discord channel.

You describe the topic, the audience, the tone and what the memes must never touch. The angle rotates by date and the templates on offer change every day, so it is not the same joke twice. The AI's reply is checked before anything is made: it has to name a template from that day's list and fill every one of its text boxes, and nothing is posted until Imgflip has sent back a real image link.

What the memes are about ships blank, so say it in the brief before the first run. You also need a free Imgflip account, added as two secrets, and a Discord bot that can post in the channel.

Run every day at 10:00.Run every day at 10:00.
Set memeBrief to a record of topic, audience, tone, and 2 more.Set memeBrief to a record of topic, audience, tone, and 2 more.
Set discordChannelId to blank.Set discordChannelId to blank.
Set postIntro to “Meme of the day”.Set postIntro to “Meme of the day”.
If memeBrief.topic is no or memeBrief.topic is blankIf memeBrief.topic is no or memeBrief.topic is blank
Yes
Stop and report a problem: Set 'topic' in the meme brief at the top of this workflow to what your memes are about, for example 'running a small online shop', then run it again. It ships blank on purpose so the workflow cannot post example memes to your real Discord channel.Stop and report a problem: Set 'topic' in the meme brief at the top of this workflow to what your memes are about, for example 'running a small online shop', then run it again. It ships blank on purpose so the workflow cannot post example memes to your real Discord channel.
No
No steps
Extract all matches from discordChannelId and save it as channelIds.Extract all matches from discordChannelId and save it as channelIds.
If channelIds is emptyIf channelIds is empty
Yes
Stop and report a problem: Paste the ID of the Discord channel the memes should go to into 'discordChannelId' (turn on Developer Mode in Discord's Advanced settings, then right-click the channel and choose Copy Channel ID; a link from Copy Link works too), then run it again.Stop and report a problem: Paste the ID of the Discord channel the memes should go to into 'discordChannelId' (turn on Developer Mode in Discord's Advanced settings, then right-click the channel and choose Copy Channel ID; a link from Copy Link works too), then run it again.
No
No steps
Get the last item of channelIds and save it as channelId.Get the last item of channelIds and save it as channelId.
If secrets.IMGFLIP_USERNAME is no or secrets.IMGFLIP_PASSWORD is noIf secrets.IMGFLIP_USERNAME is no or secrets.IMGFLIP_PASSWORD is no
Yes
Stop and report a problem: Add your Imgflip username and password as two secrets named IMGFLIP_USERNAME and IMGFLIP_PASSWORD on the Secrets and Values page, then run it again. Imgflip only captions memes for a signed-in account; a free one is enough.Stop and report a problem: Add your Imgflip username and password as two secrets named IMGFLIP_USERNAME and IMGFLIP_PASSWORD on the Secrets and Values page, then run it again. Imgflip only captions memes for a signed-in account; a free one is enough.
No
No steps
Set catalogue to nothing.Set catalogue to nothing.
If a step below fails, save the error as fetchErrorIf a step below fails, save the error as fetchError
Try
Fetch “https://api.imgflip.com/get_memes” and save it as catalogue.Fetch “https://api.imgflip.com/get_memes” and save it as catalogue.
On error
Stop and report a problem: Imgflip's list of meme templates could not be fetched (fetchError.message), so no meme was made today and nothing was posted.Stop and report a problem: Imgflip's list of meme templates could not be fetched (fetchError.message), so no meme was made today and nothing was posted.
If catalogue.body.success isn't yes or catalogue.body.data.memes is noIf catalogue.body.success isn't yes or catalogue.body.data.memes is no
Yes
Stop and report a problem: Imgflip answered, but without its list of meme templates, so no meme was made today and nothing was posted.Stop and report a problem: Imgflip answered, but without its list of meme templates, so no meme was made today and nothing was posted.
No
No steps
Keep each item in catalogue.body.data.memes where +item.box_count is greater than or equal to 1 and +item.box_count is less than… and save it as eligible.Keep each item in catalogue.body.data.memes where +item.box_count is greater than or equal to 1 and +item.box_count is less than… and save it as eligible.
If eligible is emptyIf eligible is empty
Yes
Stop and report a problem: None of the templates Imgflip listed today has between one and four text boxes, so there was nothing this workflow could caption and nothing was posted.Stop and report a problem: None of the templates Imgflip listed today has between one and four text boxes, so there was nothing this workflow could caption and nothing was posted.
No
No steps
Pick 25 random items from eligible and save it as offered.Pick 25 random items from eligible and save it as offered.
Set menu to an empty list.Set menu to an empty list.
Set position to 0.Set position to 0.
For each template in offered:For each template in offered:
Add 1 to position.Add 1 to position.
Add position. template.name (text boxes: template.box_count) to the end of menu and save it as menu.Add position. template.name (text boxes: template.box_count) to the end of menu and save it as menu.
Join menu with a new line and save it as menuText.Join menu with a new line and save it as menuText.
Set todaysAngle to “Any angle that suits the topic.”.Set todaysAngle to “Any angle that suits the topic.”.
If memeBrief.angles is yes and memeBrief.angles isn't emptyIf memeBrief.angles is yes and memeBrief.angles isn't empty
Yes
Change todaysAngle to memeBrief.angles[the remainder of the day of the month of today's date divided by the length of memeBrief.angles].Change todaysAngle to memeBrief.angles[the remainder of the day of the month of today's date divided by the length of memeBrief.angles].
No
No steps
Get today's date and save it as today.Get today's date and save it as today.
Get the day of the week for today and save it as weekday.Get the day of the week for today and save it as weekday.
Set reply to nothing.Set reply to nothing.
If a step below fails, save the error as aiErrorIf a step below fails, save the error as aiError
Try
ClaudeClaudeAsk Claude: 'You make one meme a day for a brand to post in its Discord community. Choose a meme template from today's list and write the text for each of its boxes.Ask Claude: 'You make one meme a day for a brand to post in its Discord community. Choose a meme template from today's list and write the text for each of its boxes. WHAT THE MEMES ARE ABOUT memeBrief.topic WHO WILL SEE THEM memeBrief.audience HOW THEY SHOULD FEEL memeBrief.tone NEVER memeBrief.avoid TODAY'S ANGLE todaysAngle Today is weekday today. Use that only if it genuinely makes the joke better. TODAY'S TEMPLATES menuText RULES - Choose a template you know well: you must know what its picture shows, what each of its text boxes is for, and the order the boxes run in. If you are unsure about a template, choose another. - Write exactly one line of text for every text box the template has, in the template's own box order. No more boxes and no fewer. - Make one joke that someone in the audience gets at a glance, without an explanation. - Keep every box under 60 characters. Shorter is funnier. - Plain words only: no hashtags, emoji, quotation marks or markdown, and no line breaks inside a box. REPLY FORMAT Reply with only these lines. No preamble, no explanation, no alternatives. TEMPLATE: <the template's number>. <its name, copied exactly from the list> BOX 1: <the text for its first box> Then one more BOX line for each further text box, numbered in order: BOX 2, BOX 3, BOX 4.'. Save it as reply. Maximum response length: 400
On error
Stop and report a problem: The AI could not write today's meme (aiError.message). Nothing was made or posted.Stop and report a problem: The AI could not write today's meme (aiError.message). Nothing was made or posted.
Trim reply.response_text and save it as replyText.Trim reply.response_text and save it as replyText.
Extract the first match from replyText and save it as templateLine.Extract the first match from replyText and save it as templateLine.
Set choice to +the first match in templateLine.Set choice to +the first match in templateLine.
If choice is less than 1 or choice is greater than the length of offeredIf choice is less than 1 or choice is greater than the length of offered
Yes
Stop and report a problem: The AI's reply did not pick a template from today's list, so nothing was made or posted. It began: replyText truncated to 300 characters using “...” as the ellipsis.Stop and report a problem: The AI's reply did not pick a template from today's list, so nothing was made or posted. It began: replyText truncated to 300 characters using “...” as the ellipsis.
No
No steps
Set chosen to offered[choice minus 1].Set chosen to offered[choice minus 1].
Join all matches in chosen.name in lowercase with nothing and save it as chosenKey.Join all matches in chosen.name in lowercase with nothing and save it as chosenKey.
Join all matches in templateLine in lowercase with nothing and save it as replyKey.Join all matches in templateLine in lowercase with nothing and save it as replyKey.
If replyKey doesn't contain chosenKeyIf replyKey doesn't contain chosenKey
Yes
Stop and report a problem: The AI picked template choice but did not call it by its name on today's list ('@chosen.name'), so its text may have been written for a different picture. Nothing was made or posted.Stop and report a problem: The AI picked template choice but did not call it by its name on today's list ('@chosen.name'), so its text may have been written for a different picture. Nothing was made or posted.
No
No steps
Extract all matches from replyText and save it as boxLines.Extract all matches from replyText and save it as boxLines.
If the length of boxLines is not +chosen.box_countIf the length of boxLines is not +chosen.box_count
Yes
Stop and report a problem: '@chosen.name' has chosen.box_count text boxes but the AI wrote the length of boxLines, so nothing was made or posted.Stop and report a problem: '@chosen.name' has chosen.box_count text boxes but the AI wrote the length of boxLines, so nothing was made or posted.
No
No steps
Set captions to an empty list.Set captions to an empty list.
For each boxLine in boxLines:For each boxLine in boxLines:
TextMake the first match in boxLine with “*” replaced by “” with “”“ replaced by ”“ with ”““ replaced by ”“ with ””“ replaced by ”" uppercase and save it as caption.Make the first match in boxLine with “*” replaced by “” with “”“ replaced by ”“ with ”““ replaced by ”“ with ””“ replaced by ”" uppercase and save it as caption.
If caption is emptyIf caption is empty
Yes
Stop and report a problem: The AI left a text box on '@chosen.name' empty, so nothing was made or posted.Stop and report a problem: The AI left a text box on '@chosen.name' empty, so nothing was made or posted.
No
No steps
If the length of caption is greater than 100If the length of caption is greater than 100
Yes
Stop and report a problem: One of the AI's captions ran to the length of caption characters, too long to read on a meme (the limit is 100), so nothing was made or posted. It was: caption.Stop and report a problem: One of the AI's captions ran to the length of caption characters, too long to read on a meme (the limit is 100), so nothing was made or posted. It was: caption.
No
No steps
Add caption to the end of captions and save it as captions.Add caption to the end of captions and save it as captions.
Set captioned to nothing.Set captioned to nothing.
If a step below fails, save the error as captionErrorIf a step below fails, save the error as captionError
Try
Send data to “https://api.imgflip.com/caption_image” and save it as captioned.Send data to “https://api.imgflip.com/caption_image” and save it as captioned.
On error
Stop and report a problem: Imgflip could not caption today's meme (captionError.message). Nothing was posted.Stop and report a problem: Imgflip could not caption today's meme (captionError.message). Nothing was posted.
If captioned.body.success isn't yesIf captioned.body.success isn't yes
Yes
If captioned.body.error_message is noIf captioned.body.error_message is no
Yes
Stop and report a problem: Imgflip did not make today's meme and gave no reason. Nothing was posted.Stop and report a problem: Imgflip did not make today's meme and gave no reason. Nothing was posted.
No
Stop and report a problem: Imgflip did not make today's meme: captioned.body.error_message. Nothing was posted. If that is about the username or password, check the IMGFLIP_USERNAME and IMGFLIP_PASSWORD secrets.Stop and report a problem: Imgflip did not make today's meme: captioned.body.error_message. Nothing was posted. If that is about the username or password, check the IMGFLIP_USERNAME and IMGFLIP_PASSWORD secrets.
No
No steps
Set memeUrl to captioned.body.data.url.Set memeUrl to captioned.body.data.url.
If memeUrl is no or memeUrl doesn't start with “https://”If memeUrl is no or memeUrl doesn't start with “https://”
Yes
Stop and report a problem: Imgflip said today's meme was made but sent back no link to it, so nothing was posted.Stop and report a problem: Imgflip said today's meme was made but sent back no link to it, so nothing was posted.
No
No steps
Set message to memeUrl.Set message to memeUrl.
If postIntro is yes and postIntro isn't blankIf postIntro is yes and postIntro isn't blank
Yes
Change message to postIntroChange message to postIntro memeUrl.
No
No steps
If a step below fails, save the error as postErrorIf a step below fails, save the error as postError
Try
DiscordDiscordSend a message to channel channelId.Send a message to channel channelId.message
On error
Stop and report a problem: Today's meme was made (memeUrl) but could not be posted to Discord (postError.message). Check that your bot is in the server and is allowed to view the channel, send messages and embed links in it.Stop and report a problem: Today's meme was made (memeUrl) but could not be posted to Discord (postError.message). Check that your bot is in the server and is allowed to view the channel, send messages and embed links in it.
Show in the output: Posted '@chosen.name' to Discord (captions joined by “ / ”): memeUrl.Show in the output: Posted '@chosen.name' to Discord (captions joined by “ / ”): memeUrl.