How do I correctly to handle 500 Internal Server Error responses when calling PUT /api/v2/bots/{botId}/intents/{intentId} from a Node.js AppFoundry integration? The payload passes schema validation locally, but the platform rejects updates containing more than 15 phrases per intent, which breaks our bulk provisioning logic.
Have you tried splitting the bulk load into multiple requests? The platform enforces a strict phrase limit per intent. Use genesyscloud_bot_intent with a loop to create intents in batches of 10 phrases to avoid the 500 error.
The main issue here is likely the phrase count limit, which feels restrictive compared to Zendesk’s more flexible trigger conditions. Try batching your updates like this:
{
"name": "order_status",
"phrases": ["check order", "where is my package"]
}