# Building an AI chatbot for my dad's prison tablet actually worked

> Source: <https://promptcube3.com/en/news/6311/>
> Published: 2026-08-14 17:33:37+00:00

# Building an AI chatbot for my dad's prison tablet actually worked

The technical challenge was the "walled garden" nature of the hardware. Since I couldn't just install an APK or open a browser to visit a site, I had to figure out a way to bridge the gap between a powerful LLM and the limited interface he had. I focused on creating a lightweight API wrapper that could handle requests and return concise, high-value information without triggering the system's strict data limits or crashing the low-spec tablet.

For those interested in a similar AI workflow, here is how I structured the deployment:

1. **Backend Setup:** I used a Python-based FastAPI server to act as the intermediary. This server connects to the LLM API and cleans the output to ensure it's compatible with the tablet's text rendering.

2. **Prompt Engineering:** This was the most critical part. I had to create a system prompt that forced the AI to be extremely concise. Prison tablets often have character limits or slow loading speeds, so the bot needs to get to the point immediately.

3. **Deployment:** I hosted the backend on a small VPS to ensure 24/7 availability, as the tablet's connection is intermittent.

Here is the core logic I used for the request handler to ensure the responses stayed within the tablet's limits:

``` python
import openai
from fastapi import FastAPI

app = FastAPI()

SYSTEM_PROMPT = "You are a helpful assistant for someone using a limited-interface tablet. Be concise, avoid markdown formatting that doesn't render, and provide direct answers."

@app.get("/chat")
async def chat_endpoint(user_query: str):
    response = openai.ChatCompletion.create(
        model="gpt-4",
        messages=[
            {"role": "system", "content": SYSTEM_PROMPT},
            {"role": "user", "content": user_query}
        ],
        max_tokens=150
    )
    return {"reply": response.choices[0].message.content}
```

The result has been a complete shift in how he spends his time. Instead of just waiting for mail, he's using the bot as a practical tutorial for learning new subjects and exploring topics he previously had no access to. It turns the tablet from a surveillance tool into a legitimate educational device. Seeing him engage with a deep dive into history or science via a prompt-based interface proves that LLM agents can provide immense value even in the most restrictive environments. It's a real-world example of how a bit of custom coding can break down barriers to information.

[GLM-5. 11h ago](/en/news/6261/)

[Does AI code verification feel like the new bottleneck for you? 1d ago](/en/news/6097/)

[Investing in your own workflow is the only way to stop the 2d ago](/en/news/6017/)

[Stop using Excel for ESG reporting because regulators are 2d ago](/en/news/6015/)

[Amazon order emails are basically just digital receipts now and 3d ago](/en/news/5936/)

[AI agents need a place to vent their frustrations anonymously 3d ago](/en/news/5909/)

[Next Genosyn is trying to automate the entire operational layer of a →](/en/news/6309/)

[a guide to making money with AI](https://tanyan888.com/), with plenty of directly applicable cases.
