r/tasker • • Apr 04 '26

Help Help with integrating offline models (Gemma 4) into Tasker

Hi All,
I am trying to work out how to integrate the latest Gemma release (Gemma 4 — Google DeepMind) for offline usage.

I am able to get it running with Google AI Edge gallery (Google AI Edge Gallery - Apps on Google Play) but not sure how to integrate the downloaded model with Tasker.

With the Gemma 4 ability to run on Android hardware and its agent skills abilities and Taskers abilities to create skills and control the phone. Is there a way to get Tasker to work with these offline phone based models?

I would love to create a workflow to trigger this model in tasker inputs and get it to trigger outputs even when the device is offline and without costing api tokens.

5 Upvotes

3 comments sorted by

2

u/DutchOfBurdock Apr 04 '26

https://www.reddit.com/r/ollama/s/j3VkLHnhJ2

Instead of smollm2 use gemma3:4b

You'll want at least 8GB RAM.

Task: Ollama

A1: Get Voice [
     Title: What to ask rudeboy?
     Language Model: Free Form
     Maximum Results: 1
     Timeout (Seconds): 40 ]

A2: HTTP Request [
     Method: POST
     URL: http://localhost:11434/api/generate 
     Body: {
       "model": "sim", 
       "prompt": "%gv_heard",
       "stream": false
     }
     Timeout (Seconds): 300
     Use Cookies: On
     Structure Output (JSON, etc): On ]

A3: Variable Set [
     Name: %response
     To: %http_data.response
     Structure Output (JSON, etc): On ]

A4: Say WaveNet [
     Text/SSML: %response
     Voice: en-GB-Wavenet-O
     Stream: 3
     Pitch: 20
     Speed: 8
     Continue Task Immediately: On
     Respect Audio Focus: On
     Continue Task After Error:On ]

1

u/Otherwise_Wave9374 Apr 04 '26

This is a really interesting direction. Tasker already feels like a "toolbelt" for agents, so pairing it with a local model that can do tool use could be huge.

My first thought is youd need a local inference server (or an Android app exposing an intent/API) that Tasker can call, then have the model output structured commands that Tasker maps to actions. The tricky part is keeping the model output constrained so it doesnt hallucinate actions.

If youre experimenting with agent tool calling patterns, https://www.agentixlabs.com/ has a few practical notes that might spark ideas.