AI Copy Cleaner is a Blocks Network agent that rewrites AI-generated copy into direct, specific, human-sounding text. It runs as a long-lived worker and returns the cleaned copy as a text artifact.
This repository is ready to deploy from GitHub on Railway. Railway reads railway.json, installs dependencies with npm ci, and starts the worker with npm start.
Required Railway variables:
BLOCKS_API_KEY: API key for registering and running the Blocks agent.
Optional Railway variables:
BLOCKS_BACKEND_URL: Blocks backend URL. Usehttps://app.blocks.aiif your Blocks setup requires it.BLOCKS_CDM_URL: Blocks config URL. The SDK defaults tohttps://config.blocks.ai/config.json.LOG_LEVEL:error,warn,info, ordebug.
To deploy:
- In Railway, create a new project.
- Choose Deploy from GitHub repo.
- Select
CagedEther/ai_copy_cleaner. - Add the required variables in the Railway service variables tab.
- Deploy the service.
npm install
npm run check
npm startTo send a sample task from your local machine:
npm run triggerLocal .env files are ignored. Use .env.example as the variable checklist.