Troubleshoot Custom Connections

Use this reference when your custom connection fails to deploy or the agent isn't returning properly formatted responses.

IssueResolution
Invalid JSON schemaVerify that the input field in your AiResponseFormat contains valid, properly escaped JSON.
Missing referencesAll response formats referenced in AiSurface must exist as deployed AiResponseFormat entities.
Metadata deployment errorsIf deploying incrementally, deploy AiResponseFormat entities before AiSurface entities.
Surface type mismatchEnsure the surfaceType in AiSurface matches the surfaceType in your plannerSurfaces entry.
Responses are not properly formattedVerify that your Agent API session call includes "surfaceConfig": {"surfaceType": "Custom"} in the request body.