Overview
This API enables interaction with the AI Assistant hosted atsip.launchlemonade.app. Users can send queries to an AI assistant and retrieve responses.
Authentication
All requests require Bearer Token Authentication. Include the token in the request headers.Header Format:
{your_token_here} with your actual API token, which can be found in the Profile section.
1. Run AI Assistant
Endpoint:
Request Body:
Parameters:
-
assistant_id(string, required): Unique identifier for the AI assistant. -
conversation_id(string, optional): Unique identifier for the conversation. Leave empty for a new conversation. -
input(string, required): The user input/query to be processed by the assistant.
Response:
Response Fields:
-
Conversation_ID(string): Unique identifier for the conversation. -
Response_ID(string): Unique identifier for the response. -
Error(string): Indicates if there was an error (โYesโ or โNoโ). -
Error_Reason(string): Description of the error, if any.
2. Get AI Assistant Response
Endpoint:
Request Body:
Parameters:
response_id(string, required): The unique identifier for the response you are requesting.
Response:
Response Fields:
Response(string): The assistantโs response in Markdown format.
Usage Example
Running the AI Assistant
Fetching AI Assistant Response
Notes
-
If a conversation ID is not provided in the
run_assistantrequest, a new conversation is created. - Keep a delay of 10 seconds between each call to the get_run_assistant. If no response, retry after another 10 seconds for up to 1 minute.
- Responses are returned in Markdown format for easy readability and formatting.
- Make sure your API token is valid and included in the headers for authentication.
