https://slack.com/.well-known/ai-plugin.json
{
"schema_version": "v1",
"name_for_human": "Slack",
"name_for_model": "Slack",
"description_for_human": "Plugin for querying Slack.",
"description_for_model": "Plugin for querying Slack.",
"auth": {
"type": "oauth",
"client_url": "https://slack.com/oauth/v2/authorize",
"authorization_url": "https://slack.com/api/oauth.v2.access",
"scope": "search:read",
"authorization_content_type": "application/x-www-form-urlencoded",
"verification_tokens": {
"openai": "fa9d0447108a4cc69983ed934d5ed40b"
}
},
"api": {
"type": "openapi",
"url": "https://api.slack.com/specs/openapi/ai-plugin.yaml",
"has_user_authentication": true
},
"logo_url": "https://slack.com/img/slack_logo_mark.svg",
"contact_email": "TODO",
"legal_info_url": "TODO"
}
https://api.slack.com/specs/openapi/ai-plugin.yaml
openapi: 3.0.1
info:
title: Slack AI Plugin
description: A plugin that allows users to interact with Slack using ChatGPT
version: 'v1'
servers:
- url: https://slack.com/api
components:
schemas:
searchRequest:
type: object
required:
- query
properties:
query:
type: string
description: Search query
required: true
Result:
type: object
properties:
message:
type: string
permalink:
type: string
paths:
/ai.alpha.search.messages:
post:
operationId: ai_alpha_search_messages
description: Search for messages matching a query
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/searchRequest'
responses:
'200':
description: Success response
content:
application/json:
schema:
type: object
required:
- ok
properties:
ok:
type: boolean
description: Boolean indicating whether or not the request was successful
results:
type: array
items:
$ref: '#/components/schemas/Result'