DEDUPED Hot AI repos, turned into use cases Get the Monday 5

How to serve a workflow as a chat API with Redis and MySQL with Goal Flow

Run the GoalFlow FastAPI server with persistence so clients can call your workflow.

Short answer: Run git clone on the goalflow repository and cd goalflow; then run cp .env.example .env and set real Redis and MySQL values in .env; run pip install -e. All steps.

Who it is forA backend engineer who needs a streaming chat endpoint for a registered workflow and has Redis and MySQL available.

The problemA workflow file alone does not give clients an HTTP endpoint, streaming output, or stored conversation history.

The outcomeA local server on port 8000 that accepts POST requests to /v1/chat-messages with a Bearer token and streams SSE responses.

What you need first

  • Python 3.12
  • Redis (cluster or standalone) and MySQL
  • A cloned copy of the goalflow repository and a filled-in .env file copied from .env.example
  • A Dify DSL export (.yml) if you want to transpile a visual flow

Steps

  1. Run git clone on the goalflow repository and cd goalflow.
  2. Run cp .env.example .env and set real Redis and MySQL values in .env.
  3. Run pip install -e ..
  4. Run goalflow-server and confirm it serves on http://localhost:8000.
  5. Send a test POST to /v1/chat-messages with a Bearer token that auth_validator maps to your registered workflow.

Prompt for your agent

Start the goalflow server in the goalflow repo and send one POST request to /v1/chat-messages for the workflow <workflow-name> using the Bearer token <token>. Expected output is a streamed SSE response. Verify that the conversation is stored in Redis and MySQL.

Caveat. Before you publish any fork publicly, the README warns that real credentials remain in git history and internal service URLs are hard-coded, so read docs/security-and-open-sourcing.md first.

Use this in your AI agent

Ask your agent

Using the Deduped MCP, get the setup steps for wanmol/goal-flow and "Serve a workflow as a chat API with Redis and MySQL"

Add Deduped to Claude Code once

claude mcp add --transport http deduped https://dedupedai.com/mcp

Cursor, ChatGPT, others

Share: X LinkedIn Hacker News Email Copy link

Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer