{"id":13582076,"url":"https://github.com/mjs/aw-golang_sample_agent","last_synced_at":"2025-09-15T06:04:20.988Z","repository":{"id":53939883,"uuid":"334631945","full_name":"mjs/aw-golang_sample_agent","owner":"mjs","description":"A minimal remote agent example for ActiveWorkflow in Go","archived":false,"fork":false,"pushed_at":"2021-03-11T10:51:34.000Z","size":5,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-08-18T22:53:55.916Z","etag":null,"topics":["activeworkflow","golang","golang-examples"],"latest_commit_sha":null,"homepage":"https://www.activeworkflow.org/","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mjs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-01-31T10:49:32.000Z","updated_at":"2025-02-20T14:47:14.000Z","dependencies_parsed_at":"2022-08-13T05:10:21.654Z","dependency_job_id":null,"html_url":"https://github.com/mjs/aw-golang_sample_agent","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mjs/aw-golang_sample_agent","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mjs%2Faw-golang_sample_agent","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mjs%2Faw-golang_sample_agent/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mjs%2Faw-golang_sample_agent/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mjs%2Faw-golang_sample_agent/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mjs","download_url":"https://codeload.github.com/mjs/aw-golang_sample_agent/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mjs%2Faw-golang_sample_agent/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271507247,"owners_count":24771823,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-21T02:00:08.990Z","response_time":74,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["activeworkflow","golang","golang-examples"],"created_at":"2024-08-01T15:02:25.044Z","updated_at":"2025-08-21T16:24:44.167Z","avatar_url":"https://github.com/mjs.png","language":"Go","funding_links":[],"categories":["Go"],"sub_categories":[],"readme":"# ActiveWorkflow Agent Example in Go\n\nThis project implements a simple example agent for [ActiveWorkflow](https://github.com/automaticmode/active_workflow).\nThe agent is implemented in Go and uses the [remote agent API](https://docs.activeworkflow.org/remote-agent-api).\n\nThis agent doesn't do anything particularly useful but demonstrates some of the\nfeatures of ActiveWorkflow's Remote Agent API. The agent simply records the the\nnumber of `check` and `receive` calls it sees in memory and returns messages\nwith the current count.\n\n## Quick Start\n\nThis agent is intended to be used as part of [ActiveWorkflow](https://github.com/automaticmode/active_workflow).\nTo get started with ActiveWorkflow please see the [ActiveWorkflow documentation](https://docs.activeworkflow.org/).\n\nYou will need a working Go toolchain installed. There are no external\ndependencies. The agent is built with just the Go standard library.\n\nPlease make sure you run this agent *before* starting ActiveWorkflow.  The\nagent can be started without a compile step, like this:\n\n```sh\ngo run agent.go\n```\n\nAlternatively, you can compile it first and then run it:\n\n```sh\ngo build -o agent .\n./agent\n```\n\nNote the URL of the agent's server (usually `http://127.0.0.1:5000/`), and set\nit as an environment variable for ActiveWorkflow:\n\n```sh\nexport REMOTE_AGENT_URL=\"http://127.0.0.1:5000/\"\n```\nNow you can start ActiveWorkflow. You should be able to create instances of\nthis agent (named \"Go Test Counter Agent\"). Run it and send messages to it.\n\nIf using [Docker to run ActiveWorkflow](https://docs.activeworkflow.org/#running-locally-with-docker),\nyou'll need to use the `-e` parameter to `docker run` to pass `REMOTE_AGENT_URL` through\nto ActiveWorkflow. The address in the URL will also have to be updated to match where the agent\nis running (`127.0.0.1` is unlikely to be correct). Docker provides `host.docker.internal` for the host IP.\nThus, you could run:\n```sh\ndocker run -e REMOTE_AGENT_URL=\"http://host.docker.internal:5000/\" -p 3000:3000 --rm automaticmode/active_workflow\n```\n\nPlease note that this project is just a minimal example. Consider using a\nproper project structure when developing your own ActiveWorkflow agents.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmjs%2Faw-golang_sample_agent","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmjs%2Faw-golang_sample_agent","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmjs%2Faw-golang_sample_agent/lists"}