A Slack bot that searches your articles in WordPress.
1. Create a new Google Apps Script project at script.google.com
- Click on the
Deploy
button in the toolbar - Select
New deployment
- Choose
Web app
as the type - Set
Who has access to the app
toAnyone, even anonymous
- Click on
Deploy
- Copy the WebApp URL
Change display_information
and features
to match your app and replace request_url
with the WebApp URL retrieved from Google Apps Script.
5. Create a new Slack App at api.slack.com
Select From manifest
and copy the content of slack-manifest.json
to the textarea.
WP_BASE_URL
: Your WordPress site URL (e.g.https://example.com
)WP_USERNAME
: Your WordPress usernameWP_PASSWORD
: Your WordPress App Password (Spaces in the app password can be removed)SLACK_BOT_TOKEN
: Your Slack Bot OAuth Access Token
- Invite the bot to a channel
- Mention the bot with a search query (e.g.
@bot expecto patronum
)