askExpert
askExpertUse this when the user explicitly asks to speak with a real human expert, needs personalized advice in a complex or sensitive domain, or says something like 'Can I talk to a real expert?'. Supports phone callback — pass phoneNumber and contactPreference='phone' if the user wants a call.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| question | Yes | The user's question | |
| sessionId | No | Optional session ID for continuing a conversation | |
| chatHistory | No | Optional conversation history. This ensures experts see the complete context | |
| phoneNumber | No | Customer's phone number for expert callback in E.164 format (e.g., +15551234567). Only pass when the user explicitly provides it. | |
| contactPreference | No | Customer's preferred contact method. Set to 'phone' when the user wants a phone callback. | |
| enableMockResponse | No | When true, the API returns a hardcoded mock expert success response instead of routing to a real expert. Useful for testing downstream behavior. |