Skip to main content

Get Chatbots

Simplify your chatbot application development with LikeMinds Flutter Chat SDK. By utilizing this feature you can view all the chatbots for your community.

Steps to fetch Chatbots

  1. Create an object of the GetChatbotsRequest class using the GetChatbotsRequestBuilder class.
  2. For creating a post call getChatbots() present in LMChatClient class using your request object.
  3. Process the response LMResponse<GetChatbotsResponse> as per your requirement.
GetChatbotsRequest request = (GetChatbotsRequestBuilder()
..page(1)
..pageSize(10))
.build();

LMResponse<GetChatbotsResponse> response = await lmChatClient.getChatbots(request);

if (response.success) {
// your function to process the response data
processResponse(response);
} else {
// your function to process error message
processError(response);
}

Models

GetChatbotsRequest

List of parameters for the GetChatbotsRequest class

VariableTypeDescriptionOptional
pageintPage number for API response
pageSizeintPage size for API response

GetChatbotsResponse

List of parameters for the GetChatbotsResponse class

VariableTypeDescriptionOptional
pageintCurrent page number
totalPagesintTotal number of pages
totalChatbotsintTotal number of chatbots available
usersList<User>List of chatbot users