TakeDecision

Request Example

{
    "action": "TakeDecision",
    "token": "your_generated_token",
    "message": "Hello World"
}

Fields:

  • action (string): Specifies the API action to execute. For this action, use "TakeDecision".

  • token (string): A valid authentication token obtained from the connection or registration process.

  • message (string): The message or input that the system should process to make a decision.


Response Example

{
    "message": "Hello! How can I assist you today?",
    "route": "TakeDecision",
    "status": "success"
}

Fields:

  • message (string): The system's response to the provided input or message.

  • route (string): Indicates the API route or action associated with the response. Matches the request's "action" field.

  • status (string): Describes the result of the request. Possible values include:

    • "success": The action was processed successfully.

    • "error": The action failed. Additional error details may be provided.

Last updated