Automating Discourse Topic Creation

A Python script that automates the creation of topics on Discourse, ideal for bulk posting or managing large-scale content updates.

Why Use This Script:

  • Efficiency: Automatically create multiple topics without manual intervention.
  • Customizability: Supports rich formatting, image embedding, and external URLs.
  • API-friendly: Built with the Discourse API, including rate-limiting and retry mechanisms to ensure smooth execution.

When to Use:

  • To bulk-create topics for announcements, updates, or other content.
  • When importing content from other sources into your Discourse forum.
  • To quickly test or check the functionality of your Discourse forum by posting various topics in bulk.

How to Use:

  1. Clone the repo: Discourse Topic Creation Script
  2. Set up the .env file with your Discourse instance credentials.
  3. Prepare a JSON file (topic.json for one, topics.json for many).
  4. Run the script to automatically create topics!

This tool is great for testing and checking how your Discourse forum handles multiple posts. Feel free to explore, suggest improvements, or ask questions here!

While this script is useful for testing, it’s important to focus on growing your community with real users. Genuine users contribute engagement, feedback, and value to your forum. While bots are helpful for testing, they aren’t a substitute for fostering an active, thriving community!


5 Likes
  • Does the plugin support Vietnamese? When pasting content, can we add a feature to:
  • Rewrite both the content and the title according to a script that the user has pre-trained? I’ve already trained Gemini to rewrite content and titles, but I want a faster way by pasting directly into the topic creation interface! I don’t want to copy from Gemini and then cut a part to make the title.
2 Likes

It does support Vietnamese with UTF-8 encoding.

Yes, it can be done just need to make some adjustments in the script to connect it with Gemini, I can give it a shot if it’s something important for you.

1 Like

Ok, I will take a topic in Marketplace
Thank you so much!

2 Likes

Sure, you can also shoot me a DM. I don’t really need any charges for the same. :slight_smile:

2 Likes