Building a Article Summarizer Bot Using OpenAI Assistants
Prerequisites
- OpenAI Account: Ensure the account is subscribed to a paid plan.
Step-by-Step Guide
-
Visit OpenAI Assistants page and click on the Create button.
-
Enter a name for your assistant, e.g.
Article Summarizer
. -
Add the following instruction to the Instructions section. You can adjust the instruction for your needs.
Your role is to summarize articles clearly and concisely. Summarize the article into bullet points. Each bullet point should have less than 3 sentences. Use easy words and sentences. The total number of bullet points should generally be around 3-7.
-
Click the Model combobox and select
gpt-4-1106-preview
. -
Click 'Add' button next to the 'Functions' section and paste the JSON below:
noteThis JSON defines a function that fetches website content from a URL. Check Web browsing of OpenAI Assistants to learn more.
{
"name": "plugbear_web_search",
"description": "It fetches the website content",
"parameters": {
"type": "object",
"properties": {
"query": {
"type": "string",
"description": "URL of the article"
}
},
"required": [
"query"
]
}
} -
Click the Save button to create the assistant.
What's Next
The OpenAI Assistant can be integrated into communication channels such as Slack by utilizing Runbear. Check Integrating OpenAI Assistants to learn more.