Slack automations need settings your app does not have yet. Add them to your app, then authorize it again.
{
"oauth_config": {
"scopes": {
"bot": [
"pins:write"
]
}
}
}oauth_config.scopes lists your app already has. Keep the scopes that are there.