Skip to content

Instantly share code, notes, and snippets.

@Tommyfoxy2
Forked from jagrosh/Github Webhook Tutorial.md
Last active May 11, 2024 21:51
Show Gist options
  • Save Tommyfoxy2/5bbcbc4ce340b01e00871bd43d67ff36 to your computer and use it in GitHub Desktop.
Save Tommyfoxy2/5bbcbc4ce340b01e00871bd43d67ff36 to your computer and use it in GitHub Desktop.
Simple Zapier Push to Discord webhook(s)

This tutorial is based on a realworld example


1) Initial Setup

Step 1 - Make a Discord Webhook

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

  2. In the settings for that channel, Click the Webhooks tab and create a new webhook. 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! Additionally the customization options in Discord will be overwritten by Zapier so don't bother customizing that part.


Step 2 - Zapier

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 Zap

  1. Click the "Make a Zap" button. When selecting a trigger app, search for Push and select "New Push With Text" and then Save + Continue PushSelect

  2. Install the Zapier extension (if you haven't already) and Continue

  3. Click Skip & Continue or Do the test if you'd like. After click Continue and move on to the next step

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

Config Post

  1. Fill in the template as shown below. Make sure to use the webhook URL we got from earlier. 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. Config
    Make sure fill in the header part exactly like this Headers

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

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

End Notes

By adding more Actions you can post to multiple channels at once with the same push. The advantage of this method is being able to customize the webhook username/avatar for every channel if you'd like.


Extension Push Example

This tutorial relies on the push extension downloaded earlier. Below I'll show how to use it. Pretty simple so don't worry

  1. Click on the extension to open it. You should see a window like below if you're logged into zapier and your zap is on Extension

  2. If everything was done right you should see your Zap that you made. Click on the Zap name (if any) and you should see a text box like below.

TextBox

Think of the text box as Discord, any regular Discord formatting (Markdown) you put into it will come out in Discord as if you were posting it.

Example


Other Resources / Credits

@Mystik01
Copy link

how do i add an embed? im struggling

@Liege72
Copy link

Liege72 commented Jul 31, 2020

Yeah same. Anyone know how to do it with an embed?

@DarthJahus
Copy link

You'd think that it's enough to add embed and the JSON inside… but Zapier is doing something that breaks the JSON…

@isaswa
Copy link

isaswa commented Jan 3, 2024

The images are dead.

@VashonG
Copy link

VashonG commented May 11, 2024

I'm dead

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment