Modbot Docs
APIAPI referenceAI settings

Write an insight

POST/api/settings/ai/insights/{kind}/generate

Write one insight of this kind now, for the stretch ending yesterday. Waits for the model. Answers 200 with the stored insight whether the model wrote something or the call failed -- text or error says which. Never posted to Discord. 409 when AI is off or the spend limit for insights is reached.

Needs the ManageSettings permission.

AuthorizationBearer <token>

An API key, made on Settings, API keys. Every key starts with mbk_.

In: header

Path Parameters

kind*string

Response Body

application/json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

curl -X POST "https://example.com/api/settings/ai/insights/string/generate"
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "kind": "string",  "label": "string",  "firstDay": "2019-08-24",  "lastDay": "2019-08-24",  "createdAt": "2019-08-24T14:15:22Z",  "startedBy": "string",  "requestedBy": null,  "model": null,  "text": null,  "error": null,  "figures": null,  "discordPostedAt": null,  "discordError": null}

Modbot is not endorsed by or affiliated with VRChat Inc. or Discord Inc. VRChat is a trademark of VRChat Inc. Discord is a trademark of Discord Inc. SteamVR is a trademark of Valve Corporation. Windows is a trademark of Microsoft Corporation. Docker is a trademark of Docker, Inc. PostgreSQL is a trademark of the PostgreSQL Community Association of Canada. Railway is a trademark of Railway Corp. Other names are trademarks of their respective owners; see Legal. Modbot and its logo are trademarks of the Modbot project. Open source under AGPL-3.0.