# Betsy Webhook Messages

### Github

Check out our full article on the Betsy Blogs on how to setup and use Webhooks with Discord.

<https://blog.betsybot.xyz/step-by-step-guide-to-setting-up-github-to-discord-webhooks>

### Azure Devops - Service Hooks

You can setup Azure Devops Service hooks to have Betsy Send Messages based on various events that happen within your Azure Devops Projects.

#### Setup

1. On any Azure Devops project go to your Project Settings.
2. Click on "Service Hooks" in the left hand menu
3. Click the "+" button to create a new service hook
4. Under the list view select "Web Hooks" for your service type
5. Click Next
6. Select your Trigger (Check supported triggers below)
7. Select any filters you want for your trigger
8. Click Next
9. Enter your Action Details
   1. In the URL enter the following "<https://api.betsybot.xyz/Webhook/AzureDevops>"
   2. Your Authentication Username and Password can be null
   3. Under HTTP Headers enter the following
      1. Betsy-Guild-Id:\<Your Guild Id> (Betsy-Guild-Id:943258522643230740)
      2. &#x20;Betsy-Channel-Id:\<Your Channel Id> (Betsy-Channel-Id:961001381731377282)
   4. You can leave the rest of the settings alone
10. Test your New Service Hook with the Test Button. You should see a test message in your server.
11. If successful, you can hit finish.
    1. If not successful double check the settings. If still having issues open a support ticket in our discord.

#### Pull Requests (Supports all Pull Request Types)

<figure><img src="/files/SCxEQI6Imf8N0AJ5gFqH" alt=""><figcaption><p>An example of a created pull request message</p></figcaption></figure>

#### Build Completed

<figure><img src="/files/XCWmei1bYaTcKBRpx1rA" alt=""><figcaption><p>An example of a successful build</p></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.betsybot.xyz/extras/betsy-webhook-messages.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
