Categories

Random Lottery

Random lottery system for selecting winners from participant list

Click to upload file or drag and drop file here

Maximum file size: 0MB Supported formats: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.ms-excel, text/csv

Upload Excel file with columns: Name, ID, Department

Enter participants manually (optional if using file)

API Documentation

Request Endpoint

POST /en/api/tools/random-lottery

Request Parameters

Parameter Name Type Required Description
participantFile file (Upload required) Yes Upload Excel file with columns: Name, ID, Department
participantText textarea No Enter participants manually (optional if using file)
prizeCount number Yes -

File type parameters need to be uploaded first via POST /upload/random-lottery to get filePath, then pass filePath to the corresponding file field.

Response Format

{
  "result": "Initial display content",
  "interactive": true,
  "components": [
    {
      "type": "timer",
      "id": "timer1",
      "config": {
        "label": "Countdown",
        "duration": 60
      }
    }
  ],
  "state": {
    "key": "value"
  },
  "actions": [
    {
      "type": "start",
      "id": "start-btn",
      "label": "Start"
    }
  ],
  "styles": "/* Custom CSS */",
  "scripts": "/* Client-side scripts */",
  "error": "Error message (optional)",
  "message": "Notification message (optional)",
  "metadata": {
    "key": "value"
  }
}
Interactive Component: Interactive Component

AI MCP Documentation

Add this tool to your MCP server configuration:

{
  "mcpServers": {
    "elysiatools-random-lottery": {
      "name": "random-lottery",
      "description": "Random lottery system for selecting winners from participant list",
      "baseUrl": "https://elysiatools.com/mcp/sse?toolId=random-lottery",
      "command": "",
      "args": [],
      "env": {},
      "isActive": true,
      "type": "sse"
    }
  }
}

You can chain multiple tools, e.g.: `https://elysiatools.com/mcp/sse?toolId=png-to-webp,jpg-to-webp,gif-to-webp`, max 20 tools.

Supports URL file links or Base64 encoding for file parameters.

If you encounter any issues, please contact us at [email protected]