A versatile Android plugin for Tasker that allows you to integrate various Generative AI models into your automation workflows.
- Multiple Providers: Support for OpenAI, Google Gemini, Anthropic Claude, OpenRouter, and local Ollama instances.
- Vision Support: Upload local images or use Tasker variables containing image URIs for multi-modal interactions.
- Customizable: Override default models and API base URLs (perfect for local proxies or self-hosted LLMs).
- Flexible Input:
- Manual Mode: Build conversations directly in the Tasker UI.
- Variable/JSON Mode: Pass dynamic message arrays or raw text using Tasker variables.
- Tasker Integration: Seamlessly returns AI responses to Tasker variables (default:
%ai_response).
| Provider | Default Model | Custom Base URL Support |
|---|---|---|
| OpenAI | gpt-4o-mini |
Yes |
| Gemini | gemini-1.5-flash |
Yes |
| Claude | claude-3-5-sonnet-20240620 |
Yes |
| OpenRouter | google/gemini-flash-1.5 |
Yes |
| Ollama | llama3 |
Yes (Required for local host) |
- Download and install the APK.
- Open Tasker.
- Create a new Action.
- Go to Plugin -> GenAI Tasker Plugin -> AI Action.
- Tap the Configuration (pencil) icon to set up your request.
- Provider: Select your preferred AI service.
- API Key: Enter your secret key (not required for Ollama if running locally).
- Model: (Optional) Specify a specific model ID (e.g.,
gpt-4o,claude-3-opus). - Base URL: (Optional) Provide a custom endpoint (e.g.,
http://192.168.1.10:11434for Ollama).
- Image URI: Provide a local file path (e.g.,
/sdcard/Pictures/photo.jpg) or a Tasker variable like%image_path. The plugin will Base64 encode the image and attach it to the prompt.
- Manual Messages: Add multiple roles (System, User, Assistant) to build a conversation history.
- Variable / JSON: Toggle to this tab to pass a raw string or a JSON array of messages (e.g.,
[{"role": "user", "content": "Hello!"}]).
%ai_response: The text content of the AI's reply.%ai_raw_json: (Optional) The full raw JSON response from the provider for advanced parsing.
- Android 8.0+
- Tasker installed and configured.
- Active internet connection (unless using local Ollama).
Built with Kotlin and uses the Tasker Plugin Library.
./gradlew assembleDebugMIT License - feel free to use and modify for your own automation needs!
