Generate content
curl --request POST \
--url https://app.alana.shopping/api/ai/generate \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"productContext": {
"id": "<string>",
"name": "<string>",
"brand": "<string>",
"description": "<string>",
"price": 123,
"brandId": "<string>",
"category": "<string>"
},
"prompt": "<string>",
"model": "balanced",
"surfaceKey": "<string>"
}
'{
"success": true,
"action": "<string>",
"data": {}
}Gerar com IA
Generate product descriptions, titles, or other content using AI
POST
/
api
/
ai
/
generate
Generate content
curl --request POST \
--url https://app.alana.shopping/api/ai/generate \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"productContext": {
"id": "<string>",
"name": "<string>",
"brand": "<string>",
"description": "<string>",
"price": 123,
"brandId": "<string>",
"category": "<string>"
},
"prompt": "<string>",
"model": "balanced",
"surfaceKey": "<string>"
}
'{
"success": true,
"action": "<string>",
"data": {}
}Autorizações
Bearer token authentication via Auth0. Users authenticate through Auth0 Universal Login. Include the access token in the Authorization header: Authorization: Bearer <token>
Corpo
application/json
Canvas action to execute. When action='faq', the response data is post-filtered: only FAQs with confidence >= 0.7 are returned, and the request fails with 400 if fewer than 5 high-confidence FAQs survive.
Opções disponíveis:
text, media, context, persona, taxonomy, semantic, faq, relationships, offer, reputation, technical, compliance, logistics, comparative, ai-readiness, optimization-score, visual_attributes, reshoot_product, change_backdrop, relight_product, image_upscale, product_video, batch_video, garment_swap, look_composer, look_variations, look_video, look_description, audio_description, sound_effect Show child attributes
Show child attributes
Optional user prompt to guide generation
LLM quality tier to use for generation
Opções disponíveis:
economic, balanced, high Optional distribution surface key (e.g. google_shopping, vtex_pdp). When provided, surface constraints are applied to the generated output.
Última modificação em 16 de fevereiro de 2026
⌘I