Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Simple Webhook Tutorial (Twitter -> Discord)

Simple Webhook Tutorial

In this tutorial, I will be explaining how to set up a simple webhook to relay your tweets to a Discord channel

Step 1 - Register on Zapier

  1. Go to https://zapier.com/ and create an account (if you don't already have one).

Step 2 - Make a Discord Webhook

  1. Find the Discord channel in which you would like to send Tweets

  2. In the settings for that channel, find the Webhooks option and create a new webhook. Note: Do NOT give this URL out to the public. Anyone or service can post messages to this channel, without even needing to be in the server. Keep it safe! WebhookDiscord

  3. You can name the webhook whatever you want, and give it any image; for this tutorial we override them later anyway. Keep track of the URL; we'll need it later.

Step 3 - Make a Zap

  1. Click the "Make a Zap" button. When selecting a trigger app, search for Twitter and select "My Tweet" and then Save + Continue TwitterTriggers

  2. Connect your twitter account (if you haven't already) and Save & Continue

  3. Make sure you've tweeted at least once, and press the Fetch & Continue button, and then Continue if it succeeds.

  4. For the Action App, select Webhooks, and then pick POST Webhooks POST

  5. Fill in the template as shown below. Make sure to use the webhook URL we got from Step 2. Also, in the "Data" section, you can edit the fields, but don't edit the names of the fields, or Discord might not accept the input. Template
    Also make sure to scroll down and fill this one in exactly like this: ContentType

  6. Test to make sure that it's working. If successful, it will post to your Discord channel Success

  7. Finish and turn the Zap on, so it's always running!

Other Resources

@CodeBowser

This comment has been minimized.

Copy link

@CodeBowser CodeBowser commented Oct 2, 2016

Great job man helped me a lot

@NotSoSuper

This comment has been minimized.

Copy link

@NotSoSuper NotSoSuper commented Oct 2, 2016

nice

@Xenotater

This comment has been minimized.

Copy link

@Xenotater Xenotater commented Oct 3, 2016

Ty Jag :P

@ghost

This comment has been minimized.

Copy link

@ghost ghost commented Oct 3, 2016

helpful

@FrankenMan

This comment has been minimized.

Copy link

@FrankenMan FrankenMan commented Oct 3, 2016

awesome

@devsnek

This comment has been minimized.

Copy link

@devsnek devsnek commented Oct 17, 2016

0/10 doesn't explain how to verify spectra

@shadowfox87

This comment has been minimized.

Copy link

@shadowfox87 shadowfox87 commented Oct 18, 2016

Nice, but where is that twitter bird symbol so I can copy paste it?

@jagrosh

This comment has been minimized.

Copy link
Owner Author

@jagrosh jagrosh commented Oct 19, 2016

@shadowfox87 That's actually just the default "bird" emoji. If you type \:bird: in Discord, you can copy-paste that, or put \uD83D\uDC26 in your message

@SillyBirds

This comment has been minimized.

Copy link

@SillyBirds SillyBirds commented Oct 25, 2016

I'm guessing zapier could be used to do the same with facebook?

@ghost

This comment has been minimized.

Copy link

@ghost ghost commented Oct 26, 2016

nice

@dannigoes

This comment has been minimized.

Copy link

@dannigoes dannigoes commented Nov 3, 2016

Thanks

@Chilace

This comment has been minimized.

Copy link

@Chilace Chilace commented Nov 11, 2016

@shadowfox87 or copy/paste from there:
Unicode® character table

@Kyu

This comment has been minimized.

Copy link

@Kyu Kyu commented Nov 25, 2016

ok hand

@jacobgoodo

This comment has been minimized.

Copy link

@jacobgoodo jacobgoodo commented Jan 24, 2017

Very good!

@FoxiZCC

This comment has been minimized.

Copy link

@FoxiZCC FoxiZCC commented Mar 22, 2017

So i need to repeat this proses evry time i post somting??

@NNTin

This comment has been minimized.

Copy link

@NNTin NNTin commented Mar 28, 2017

I wrote a discord-twitter-bot.

Advantages:

  • follows multiple twitter users
  • if desired posts in multiple text channels
  • no delay
  • more customization (more control over text formatting, image integration)

Disadvantages:

  • need a machine running 24/7 (e.g. a raspberry pi) or running it on a VPS which costs money. (Github offers a education pack which gives you $50 store credit on Digital Ocean for free, enough to host this bot for 10 months.)
  • setting it up is less user friendly. I've created a setupBot.py for that reason.

Here is the bot's discord server. Currently it mirrors tweets for 3 games: Dota 2, CS:GO and LoL.

@emTr0

This comment has been minimized.

Copy link

@emTr0 emTr0 commented Jun 6, 2017

Thanks for this tutorial!

@anthonygorss

This comment has been minimized.

Copy link

@anthonygorss anthonygorss commented Jul 8, 2017

Outstanding!

@BIELESPRO

This comment has been minimized.

Copy link

@BIELESPRO BIELESPRO commented Jul 14, 2017

It works in every tweet of the account or only the frist?

@Feyko

This comment has been minimized.

Copy link

@Feyko Feyko commented Jul 24, 2017

Oh my god thanks

@sBeastbum

This comment has been minimized.

Copy link

@sBeastbum sBeastbum commented Aug 4, 2017

idk what to put in the box that says "content" in. help me immediately! i need my answer quick! i dont wanna wait!!!!!!!

@JohnDoesCodes

This comment has been minimized.

Copy link

@JohnDoesCodes JohnDoesCodes commented Aug 24, 2017

cool

@sirdigbychknczr

This comment has been minimized.

Copy link

@sirdigbychknczr sirdigbychknczr commented Sep 5, 2017

Is there a way to incorporate the @everyone tag without it defaulting to the twitter user?

@0dss

This comment has been minimized.

Copy link

@0dss 0dss commented Sep 22, 2017

The "view tweet" text shows us that there are hyperlinks. How can we make one?

@rmassengale

This comment has been minimized.

Copy link

@rmassengale rmassengale commented Oct 3, 2017

If I want to get tweets from another users accounts, how I can get them without signing in? (i.e., I want Pokemon Go Hub's tweets to post to my page. obviously I can't log into that account.) Any help is appreciated.

@JackieJoyner

This comment has been minimized.

Copy link

@JackieJoyner JackieJoyner commented Oct 4, 2017

^^^^same question as above

@Protegus

This comment has been minimized.

Copy link

@Protegus Protegus commented Oct 9, 2017

It dont work forever :( you have to buy an account. This is only a free TRIAL

@Artemaesia

This comment has been minimized.

Copy link

@Artemaesia Artemaesia commented Oct 10, 2017

zap

for external tweets just select User Tweet as your trigger and input the username after continue
@rmassengale @JackieJoyner

@mythnc

This comment has been minimized.

Copy link

@mythnc mythnc commented Oct 18, 2017

Thanks. It's useful!

@FIERCEDINO080

This comment has been minimized.

Copy link

@FIERCEDINO080 FIERCEDINO080 commented Oct 24, 2017

i'm kinda getting worried about the 14 day trial...after 14 days does the webhook not work anymore? thanks in advance! ~fierce

@ilhamfauzan

This comment has been minimized.

Copy link

@ilhamfauzan ilhamfauzan commented Oct 25, 2017

how about tweets from others? like @discordapp

@Netail

This comment has been minimized.

Copy link

@Netail Netail commented Oct 25, 2017

How can I disable replies?

@SomethingTeitokuBased

This comment has been minimized.

Copy link

@SomethingTeitokuBased SomethingTeitokuBased commented Nov 6, 2017

Will I have to worry about the premium once the trial expires?

@RaelynnLilaah

This comment has been minimized.

Copy link

@RaelynnLilaah RaelynnLilaah commented Nov 13, 2017

@wilyt Bird emoji is just \:bird: in Discord.
@Zetrows Look up and you'll see a picture about that.
@FoxiZCC NO! >.<
@devsnek What?

@Etanarvazac-zz

This comment has been minimized.

Copy link

@Etanarvazac-zz Etanarvazac-zz commented Nov 19, 2017

Umm... Sure lets pay for it. Screw that.....

@FreePvp

This comment has been minimized.

Copy link

@FreePvp FreePvp commented Nov 30, 2017

what do i put in data?

@VYRNACH

This comment has been minimized.

Copy link

@VYRNACH VYRNACH commented Mar 1, 2018

Awesome. But Zapier has a "task limit" which can be a huge turn off

@carlosmmelo

This comment has been minimized.

Copy link

@carlosmmelo carlosmmelo commented Apr 30, 2018

Love this integration, however Retweets can be really really NOISY/

Any way of excluding retweets (RT) ?

@ghost

This comment has been minimized.

Copy link

@ghost ghost commented May 1, 2018

you can also use IFTTT

@AwBlox

This comment has been minimized.

Copy link

@AwBlox AwBlox commented May 29, 2018

thanks a lot! its working l 👍

@K2NK

This comment has been minimized.

Copy link

@K2NK K2NK commented Jun 4, 2018

Hi..how to make the weebhook include/embed attachment?
Thanks

@TheBloodHound

This comment has been minimized.

Copy link

@TheBloodHound TheBloodHound commented Jun 28, 2018

Thank you!

@gavwin

This comment has been minimized.

Copy link

@gavwin gavwin commented Jul 3, 2018

Nice tutorial 👍

@NNTin

This comment has been minimized.

Copy link

@NNTin NNTin commented Jul 9, 2018

I added a Heroku Button to my discord-twitter-bot project. You can now deploy the bot on Heroku free of charge in under 5 minutes.

YouTube Video

@prepper25

This comment has been minimized.

Copy link

@prepper25 prepper25 commented Jul 10, 2018

any way to add embed with zapier?

@WonDerMeGa1

This comment has been minimized.

Copy link

@WonDerMeGa1 WonDerMeGa1 commented Jul 23, 2018

Hey, I got a question, I basically followed that tutorial step by step since I definitely don't have the knowledge to figure this all out on my own with the only change being that the webhook is to another user's twitter account. So far so flawless, with one exception, which is that the webhook doesn't seem to be showing pictures or any other form of media if it gets posted alongside the tweet. I even tried to experiment with the File field and filling the "Entities Attached Media Media URL" in there, but that on the other hand when I go for the test tweet only shows me the picture and not the text or anything else, and when I simply insert it into "content" field it obviously only spits out the link and doesn't display the picture. So, since I have now run out of my limited options, since this is my first time setting up a webhook in general, I'd really appreciate some help from some of you who are more experienced then me. Thank you in advance!

@ZockerBoysHD

This comment has been minimized.

Copy link

@ZockerBoysHD ZockerBoysHD commented Jul 31, 2018

doesnt work. says "We had trouble sending your test through. Please try again. Error:
discordapp.com returned (400) Bad Request and said nothing"

@cyrexbtw

This comment has been minimized.

Copy link

@cyrexbtw cyrexbtw commented Aug 7, 2018

@ZockerBoysHD i have the same problem :p

@ivancano19

This comment has been minimized.

Copy link

@ivancano19 ivancano19 commented Sep 17, 2018

the bad thing that, when you reach the limit, you have to pay if or if the other tweets come out. Does anyone have another option?

@Blapor

This comment has been minimized.

Copy link

@Blapor Blapor commented Sep 19, 2018

Really useful, thanks!

@Luxetrixx

This comment has been minimized.

Copy link

@Luxetrixx Luxetrixx commented Nov 24, 2018

the bad thing that, when you reach the limit, you have to pay if or if the other tweets come out. Does anyone have another option?

its only 5 zaps at a time, and it updates once every 15 mins. Not too bad for free
Edit: Nvm, just looked at their plans and its limited at 100 requests per month

@Aurorum

This comment has been minimized.

Copy link

@Aurorum Aurorum commented Jan 5, 2019

For those asking about the trial: no, if you're ONLY using this, you won't run into any issues. 100 requests per month is more than enough, however there's a delay of 15 minutes instead of 5. As soon as you add another step to your zap, then it'll stop working after the trial.

@I-have-two-brain-cells

This comment has been minimized.

Copy link

@I-have-two-brain-cells I-have-two-brain-cells commented Feb 18, 2019

can you use this for other platforms or just twitter

@juanissoawesome

This comment has been minimized.

Copy link

@juanissoawesome juanissoawesome commented May 8, 2019

Does anyone know how to make the bot keep tweeting up-to-date posts continuously?
If so, DM me on discord and tell me who you are and how you found me before you tell me how: who_doge#7132

@Deanosim

This comment has been minimized.

Copy link

@Deanosim Deanosim commented May 23, 2019

This doesn't appear to work anymore
The app returned "405: Method Not Allowed". It looks like the app or service is experiencing a problem. Please contact our support team for help fixing this error.

@TheChicken14

This comment has been minimized.

Copy link

@TheChicken14 TheChicken14 commented Jun 8, 2019

@Deanosim, yes it does

@lights0

This comment has been minimized.

Copy link

@lights0 lights0 commented Jun 17, 2019

Hi can you tell me how to Data for "tweet in list". When I try to type in specific usernames and tweets show up instead of general "username", "text", "url", "profile url".

@Photolinkeeper

This comment has been minimized.

Copy link

@Photolinkeeper Photolinkeeper commented Aug 19, 2019

Hi! does anyone know how to view just the tweets from a specific account? I did all the steps and everything works fine but for example right now the zap shows the retweets that this account made, so there is my question, how can set up that? I just want to see the tweets and not the retweets from this account.

@Blue-Waffle

This comment has been minimized.

Copy link

@Blue-Waffle Blue-Waffle commented Sep 6, 2019

doesnt work. says "We had trouble sending your test through. Please try again. Error:
discordapp.com returned (400) Bad Request and said nothing"

Has anyone found the solution yet? It seems like emoji in the tweet cause this error. I sent a test of a tweet with emoji and it returns error 400 bad request, but when I test one without emoji, it goes through fine.

@LimePotato

This comment has been minimized.

Copy link

@LimePotato LimePotato commented Jul 18, 2020

simply doesnt work

@Rexogamer

This comment has been minimized.

Copy link

@Rexogamer Rexogamer commented Jul 25, 2020

webhooks are paid now

@a3diti

This comment has been minimized.

Copy link

@a3diti a3diti commented Aug 7, 2020

no longer possible, since needs twitter auth

@Wafelack

This comment has been minimized.

Copy link

@Wafelack Wafelack commented Oct 6, 2020

Thx a lot, it works better than IFTTT

@Jeydin21

This comment has been minimized.

Copy link

@Jeydin21 Jeydin21 commented Oct 15, 2020

As of 2020, this is no longer working because Zapier hasn't verified their Discord bot yet if anyone's wondering.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.