← Back to list

How to Build a Bot for Slack that Summarizes Articles

Step-by-step guide to build a Bot for Slack that summarizes articles using OpenAI Assistant

Snow LeeSnow Lee

Sharing news and articles help colleagues to stay up-to-date with the latest information. However, it is time-consuming to read through the whole article. In this article, we will show you how to build a bot for Slack that can summarize the article for you, using OpenAI Assistant and PlugBear.


  1. Creating OpenAI Assistant that summarizes articles.
  2. Adding it to Slack workspace using PlugBear.

Creating OpenAI Assistant that Summarizes Articles

Building custom GPT became much easier with OpenAI Assistant.

  1. Visit OpenAI Assistant and click the Create button.

  2. Enter the name of your assistant, e.g. Article Summary Bot.

  3. Enter the instruction for your assistant:

    Your role is to summarize articles in a clear and concise manner. Each summary should be no longer than 2-3 paragraphs, with each paragraph containing maximum 3-4 sentences. Use no more than 120 words in total. This format ensures that the summaries are digestible and retain the essential points of the original article.

    Adjust the instruction to your needs.

  4. Click the Add button next the Functions section and paste the JSON below:

      "name": "fetch_article",
      "description": "It fetches the content of the article",
      "parameters": {
        "type": "object",
        "properties": {
          "url": {
            "type": "string",
            "description": "The URL of the article"
          "__api__": {
            "type": "object",
            "value": {
              "url": "{url}",
              "headers": {
                "Content-Type": "text/html; charset=utf-8"
        "required": [

    This function uses the url parameter to fetch the website content. Check How to Use API Function Calling Using OpenAI Assistant for more details.

    * Note that the __api__ parameter is a special parameter supported by PlugBear.

  5. Click the Save button to create your assistant.

Adding it to Slack Workspace

Check out the Connecting OpenAI Assistant to Slack to add your Assistant to your Slack workspace.

Enjoying the Article Summary Bot

Now, you can enjoy the article summary bot in your Slack workspace. Ask the bot to summarize an article by sharing its URL.

Summary bot example