Generate AI prompts for brand monitoring
Generate suggested monitoring prompts and a brand-perception summary for a given brand — useful during monitor onboarding so users do not have to come up with AI Search Watcher prompts manually. Send brand_profile to generate the prompts from a brand profile the user reviewed instead (see POST /aiwatcher/brand-profile/build); they then come grouped per product or service.
Request body:
brand— brand name to analyzedomain— withoutbrand_profile, the brand perception is written from the title and meta description of the homepage on this domain when the page has them; not used withbrand_profile(to draft a brand profile from the homepage, callPOST /aiwatcher/brand-profile/build)location_id— withoutbrand_profile, accepted but not used when generating prompts; with it, the location is passed to the AI model, and prompts for a local service can name the city when the location is a cityplatform_id— accepted but not used when generating promptslanguage_id— optional language for prompt generationbrand_profile— optional brand profile to generate the prompts from; itsaboutmust not be empty. The prompts are grouped per product or service, one group per product; when the profile lists no products, the AI model infers them fromabout. The groups share one total: on an AI or Combo plan the larger ofmaxGeneratePromptsand the number of products, so every product gets at least one prompt, but no more than the prompts left on the account unless that is belowmaxGeneratePrompts; on other plansmaxGeneratePrompts, the first products getting one each when there are more products than that
Response:
prompts— array of suggested prompt strings ready to pass intoPOST /aiwatcher/monitor; withbrand_profile, the prompts of all groups in one list, one prompt per group per round, which on an AI or Combo plan can be more thanmaxGeneratePromptsmaxGeneratePrompts— number of prompts the current plan generates, regardless of the products inbrand_profileperception— a short textual summary of how AI models currently describe the brand; withbrand_profile, the profile'saboutgroups— only whenbrand_profilewas sent: the prompts per product or service, each group with itsnameandprompts
Authorization
ApiKeyAuth API token issued for your Mangools account, sent as an API key in the x-access-token HTTP header. This is NOT a standard RFC 6750 Authorization: Bearer <token> header. Auto-generated clients should be configured to send the token in x-access-token accordingly.
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
curl -X POST "https://api.mangools.com/v3/aiwatcher/prompts/generate" \ -H "Content-Type: application/json" \ -d '{ "location_id": 0, "platform_id": 0, "brand": "string", "domain": "string" }'{
"prompts": [
"string"
],
"perception": "string",
"maxGeneratePrompts": 0,
"groups": [
{
"name": "string",
"prompts": [
"string"
]
}
]
}{
"error": {
"type": "AuthError",
"message": "Invalid API Key"
}
}{
"error": {
"type": "FailedDependencyException",
"message": "The AI model did not answer, the prompts could not be generated"
}
}