Flutter assistantOverrides Variable + tool call
I am using the Vapi Flutter SDK https://pub.dev/packages/vapi
My tool call API endpoint needs the user token, then I pass it inside like this. The name works perfectly but it doesn't see my {{authToken}} at the tool call section. I'm stuck for days on this.
Note: Have also declared it in my tool call as well (See the image)
My tool call API endpoint needs the user token, then I pass it inside like this. The name works perfectly but it doesn't see my {{authToken}} at the tool call section. I'm stuck for days on this.
Note: Have also declared it in my tool call as well (See the image)
Map<String, dynamic> _assistantOverrides(String token) => {
'recordingEnabled': false,
'variableValues': {
'name': widget.userAccount.firstname,
'authToken': token,
'transaction_id': widget.transactionId ??
"e022a120-5583-4a4c-aa46-deea27979980"
},
};
final assistantOverrides = _assistantOverrides(token);
final call = await vapiClient!.start(
assistantId: assistantId,
assistantOverrides: assistantOverrides,
);