v1ConvaiAgentsAgentIdWidgetGet method
Get Agent Widget Config @param agent_id The id of an agent. This is returned on agent creation. @param conversation_signature An expiring token that enables a websocket conversation to start. These can be generated for an agent using the /v1/convai/conversation/get-signed-url endpoint @param xi-api-key Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website.
Implementation
Future<chopper.Response<GetAgentEmbedResponseModel>>
v1ConvaiAgentsAgentIdWidgetGet({
required String? agentId,
String? conversationSignature,
String? xiApiKey,
}) {
generatedMapping.putIfAbsent(
GetAgentEmbedResponseModel,
() => GetAgentEmbedResponseModel.fromJsonFactory,
);
return _v1ConvaiAgentsAgentIdWidgetGet(
agentId: agentId,
conversationSignature: conversationSignature,
xiApiKey: xiApiKey?.toString(),
);
}