# AI use cases for JornAI (MatheusBomtempo/JornAI)

Repo: [MatheusBomtempo/JornAI](https://github.com/MatheusBomtempo/JornAI) | Use cases: 3 | Page: https://dedupedai.com/use-cases/matheusbomtempo-jornai/

JornAI is an open source web tool that helps newsrooms draft, frame, review and publish breaking-news posts to Instagram, with AI writing the text and a human approving every post.

This file holds every use case of this repo. Each one starts with a "## " heading and ends with its URL.

- Run a local JornAI demo with no external keys: https://dedupedai.com/use-cases/matheusbomtempo-jornai/run-local-jornai-demo/
- Publish a breaking-news photo post with human approval: https://dedupedai.com/use-cases/matheusbomtempo-jornai/publish-breaking-news-photo-post/
- Draft a Portuguese post from a police report: https://dedupedai.com/use-cases/matheusbomtempo-jornai/draft-police-report-post-in-portuguese/

## How to run a local JornAI demo with no external keys with JornAI

Repo: [MatheusBomtempo/JornAI](https://github.com/MatheusBomtempo/JornAI) | Difficulty: Intermediate | Time: 30 minutes | Basis: From the README

Start the full draft-review-publish flow on your machine using the mock AI provider.

**Who it is for:** A developer or newsroom technologist who wants to see how JornAI works before setting up a real newsroom.

**The problem:** Evaluating a publishing tool is hard when it needs AI keys, a database and Instagram accounts before anything runs.

**The outcome:** A working local instance where you can sign in, submit a source and walk through generation, framing and approval with a stub AI response.

### Steps

1. Run `git clone https://github.com/MatheusBomtempo/JornAI.git` and then `cd JornAI`.
2. Run `npm install`.
3. Run `docker compose up -d` to start the PostgreSQL database that matches .env.example.
4. Run `cp .env.example .env`, then keep AI_PROVIDER="mock" in .env.
5. Run `npm run db:migrate`, then `npm run db:seed`, then `npm run dev`.
6. Open the local address and sign in with admin@jornai.local and admin12345, which the seed creates for development only.

### Prompt to paste into your agent

```text
Clone https://github.com/MatheusBomtempo/JornAI, install dependencies, start PostgreSQL with docker compose, set AI_PROVIDER="mock" in .env, then run db:migrate, db:seed and dev. Report the local URL and confirm you can sign in as admin@jornai.local.
```

### Caveat

The seeded admin account is for development only, and the mock provider returns a stub response, so the demo does not show real AI copy quality.

Disclaimer: Third-party repos we don't own or vouch for. AI-generated use cases can be wrong: review everything and run at your own risk. Full text: https://dedupedai.com/disclaimer/

URL: https://dedupedai.com/use-cases/matheusbomtempo-jornai/run-local-jornai-demo/

## How to publish a breaking-news photo post with human approval with JornAI

Repo: [MatheusBomtempo/JornAI](https://github.com/MatheusBomtempo/JornAI) | Difficulty: Intermediate | Time: 1 hour | Basis: From the README

Turn a pasted source and one photo into an Instagram post that a manager must approve.

**Who it is for:** A reporter at a local newsroom who needs to get an urgent post out, such as an accident or weather alert, with editorial review.

**The problem:** Urgent posts need speed, but unreviewed AI text or inconsistent branding can publish wrong facts or off-brand art.

**The outcome:** An approved Instagram feed post with a title, subtitle and caption, framed in the newsroom's brand template, with a full version history.

### Steps

1. As admin, open Admin and set up the Company (name, logo, Instagram handle, brand colors), one Template, and Newsroom style examples.
2. Paste a text, an article link or a PDF as the source, optionally credit the photographer, and click Generate.
3. Drag and zoom the photo in the frame, move the title and subtitle, and edit the words within the character limits.
4. Open the review screen, check the post as it will look on Instagram, and choose Approve and publish, Request rewrite or Reject with a reason.
5. Leave Add to story too unticked unless you want the art published as an Instagram story after the feed post.

### Prompt to paste into your agent

```text
Using the JornAI repo at https://github.com/MatheusBomtempo/JornAI, draft an Instagram post from the source <source text or link> with the photo <photo path>. Return the title, subtitle and caption as shown in the review screen, and confirm that the post is pending approval and not published.
```

### Caveat

Publishing to Instagram requires the Instagram Graph API settings in the environment, and a failed story does not undo the feed post, so check the review screen after each attempt.

Risk, credentials: Publishing needs IG_USER_ID and IG_ACCESS_TOKEN in the environment, so keep them out of shared code and logs.

Disclaimer: Third-party repos we don't own or vouch for. AI-generated use cases can be wrong: review everything and run at your own risk. Full text: https://dedupedai.com/disclaimer/

URL: https://dedupedai.com/use-cases/matheusbomtempo-jornai/publish-breaking-news-photo-post/

## How to draft a Portuguese post from a police report with JornAI

Repo: [MatheusBomtempo/JornAI](https://github.com/MatheusBomtempo/JornAI) | Difficulty: Intermediate | Time: 45 minutes | Basis: From the README

Set the Brazilian Portuguese pack and turn an official report into a fact-checked draft.

**Who it is for:** A newsroom in Brazil whose reporters receive police reports or official PDFs and need accurate, redacted drafts.

**The problem:** A model fed a raw police report can produce a confident article with invented details, and personal data can leak into posts.

**The outcome:** A Portuguese post draft where personal data is redacted, official form fields are extracted, and the weekday is computed by code, ready for human review.

### Steps

1. Set APP_LANGUAGE to pt in .env, since the Brazilian Portuguese pack covers CPF, plates, police-report forms and dd/mm/yyyy dates.
2. Run `npm run db:migrate` so the database is ready for the language settings.
3. Paste the police report or PDF as the source and click Generate.
4. Check the generated title, subtitle and caption against the source, and confirm that names, IDs and plates are not shown.
5. Send the draft to a manager or admin, who approves it, rejects it or requests a rewrite.

### Prompt to paste into your agent

```text
In the repo https://github.com/MatheusBomtempo/JornAI, set APP_LANGUAGE=pt, then generate a draft from the police report <file path>. Return the title, subtitle and caption, and verify that no CPF, phone number or plate appears in the text.
```

### Caveat

The validator and redaction rules cover only the languages and forms the repo ships with, so an unusual report layout still needs a careful human read before approval.

Disclaimer: Third-party repos we don't own or vouch for. AI-generated use cases can be wrong: review everything and run at your own risk. Full text: https://dedupedai.com/disclaimer/

URL: https://dedupedai.com/use-cases/matheusbomtempo-jornai/draft-police-report-post-in-portuguese/
