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 Runbear.
TL;DR
- Creating OpenAI Assistant that summarizes articles.
- Adding it to Slack workspace using Runbear.
Creating OpenAI Assistant that Summarizes Articles
Building custom GPT became much easier with OpenAI Assistant.
- Visit OpenAI Assistant and click the
Createbutton. - Enter the name of your assistant, e.g.
Article Summary Bot. - Click the
Addbutton next theFunctionssection 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": [
"url"
]
}
}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 Runbear.
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.


