Vapi Support Bot
05/15/2025, 7:44 AMtsx
const modelProvider = agent.model?.provider || 'default_provider';
This prevents the error if agent.model
is undefined. Double-check your workflow configuration and API payloads to ensure all necessary fields are present and correctly formatted.
Sources:
- [Troubleshooting Vapi workflow errors](https://discord.com/channels/1211482211119796234/1334666797932089405)
- [Cannot convert undefined or null to object error in Vapi workflows](https://discord.com/channels/1211482211119796234/1328923059905630238)Vapi Support Bot
05/15/2025, 7:44 AM