# How to create Discourse posts automatically from Nolt webhook data?

**URL:** https://meta.discourse.org/t/how-to-create-discourse-posts-automatically-from-nolt-webhook-data/236472
**Category:** Development
**Tags:** rest-api
**Created:** [August 17, 2022, 7:52pm UTC](https://meta.discourse.org/t/how-to-create-discourse-posts-automatically-from-nolt-webhook-data/236472 "2022-08-17T19:52:50Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![ramyzhang](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ramyzhang/32/271053_2.png) [@ramyzhang](https://meta.discourse.org/u/ramyzhang)
#### Post date: [August 17, 2022, 7:52pm UTC](https://meta.discourse.org/t/how-to-create-discourse-posts-automatically-from-nolt-webhook-data/236472/1 "2022-08-17T19:52:50Z")

</div>

Hello! First time poster, please notify me if I’m breaking any convention in my question 😁

My team is currently using [Nolt](https://nolt.io/) for our product’s user feedback and feature requests. We would like to create a thread on our Discourse community where, whenever **new feedback is posted** on our Nolt board, it **automatically writes a new comment** on that thread as well.

Currently, Nolt has a webhooks feature that I think we could use to make this happen, but I’m not sure where to go from there. Am I meant to POST that data to the Discourse API via a bot hosted on Heroku, for example? I’d like to know if there are any **core resources** to building something like this because I’m lost as to where to start.

Our Discourse community is self-hosted, if that helps.

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [August 17, 2022, 8:09pm UTC](https://meta.discourse.org/t/how-to-create-discourse-posts-automatically-from-nolt-webhook-data/236472/2 "2022-08-17T20:09:01Z")

</div>

You will need something to receive the Nolt webhook, massage the data, and execute a Discourse API call.

A lot of people use Zapier and similar tool for doing that, but you can also use a serverless service, or a bot on Heroku as you said.

The docs on creating new posts on Discourse via API calls live at [Discourse API Docs](https://docs.discourse.org/#tag/Posts/operation/createTopicPostPM)

---

<div class="post-metadata">

### Author: ![ramyzhang](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ramyzhang/32/271053_2.png) [@ramyzhang](https://meta.discourse.org/u/ramyzhang)
#### Post date: [August 18, 2022, 1:45am UTC](https://meta.discourse.org/t/how-to-create-discourse-posts-automatically-from-nolt-webhook-data/236472/3 "2022-08-18T01:45:29Z")

</div>

I did check out Zapier and was considering it as an option, I do find troubleshooting to be really frustrating with it sometimes though. Do you by any chance have any specific recommendations for the serverless services you mentioned? I don’t think I’ve ever heard of any.

The link to the API Docs is very helpful! I was looking for it.

Thanks for the response 😁

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [August 18, 2022, 2:30am UTC](https://meta.discourse.org/t/how-to-create-discourse-posts-automatically-from-nolt-webhook-data/236472/4 "2022-08-18T02:30:29Z")

</div>

The other solution if you can install plugins, is a plugin that will accept the webhook calls from nolt directly. It’s probably not much harder to do and won’t have to have another service involved.

---

<div class="post-metadata">

### Author: ![ramyzhang](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ramyzhang/32/271053_2.png) [@ramyzhang](https://meta.discourse.org/u/ramyzhang)
#### Post date: [August 18, 2022, 4:06am UTC](https://meta.discourse.org/t/how-to-create-discourse-posts-automatically-from-nolt-webhook-data/236472/5 "2022-08-18T04:06:46Z")

</div>

I think we’re able to. That sounds like a great option - would love to keep things within Discourse 😛 Thanks for the info!

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [August 18, 2022, 11:34am UTC](https://meta.discourse.org/t/how-to-create-discourse-posts-automatically-from-nolt-webhook-data/236472/6 "2022-08-18T11:34:12Z")

</div>

If you need help and have a budget, you can contact me or ask in #Marketplace. If you’re looking for examples, what I recommend is getting the all-the-plugins repo from github/discourse and find one that adds a route.

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [September 17, 2022, 11:34am UTC](https://meta.discourse.org/t/how-to-create-discourse-posts-automatically-from-nolt-webhook-data/236472/7 "2022-09-17T11:34:57Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
