Agents Examples

A collection of autonomous AI agents built with OpenServ API and SDK framework. Each agent demonstrates different capabilities and use cases.

Twitter Agent

An AI marketing manager with capabilities to post tweets through the OpenServ Twitter integration. This agent can craft and send marketing tweets based on your business objectives.

Getting Started

  1. Clone the repository:

git clone https://github.com/openserv-labs/agent-examples.git
  1. Navigate to the agent directory you want to try, ex:

cd dexscreener-analytics
  1. Install dependencies:

npm install
  1. Set up environment variables:

cp .env.example .env
# Edit .env and add your API keys
  1. Run the agents:

npm run dev

Project Structure

/
├── dexscreener-analytics/      # DexScreener analytics agent
│   ├── index.ts                # Agent implementation
│   ├── package.json            # Agent dependencies
│   └── tsconfig.json           # TypeScript config
│   └── .env.example            # Example environment file
└── goat-agent/                 # GOAT wallet agent
│   ├── index.ts                # Agent implementation
│   ├── package.json            # Agent dependencies
│   └── tsconfig.json           # TypeScript config
│   └── .env.example            # Example environment file
├── perplexity-sonar-pro/          # Perplexity search agent with the Sonar Pro API
│   ├── index.ts                    # Agent implementation
│   ├── client.ts                   # Perplexity API client
│   ├── package.json                # Agent dependencies
│   └── tsconfig.json               # TypeScript config
│   └── .env.example                # Example environment file
└── README.md                       # Main documentation

Contributing

We welcome contributions! If you'd like to add a new agent example:

  1. Create a new directory with a descriptive name

  2. Include a comprehensive README.md in your agent's directory

  3. Follow the existing code structure and documentation patterns

  4. Submit a pull request with your changes

License

MIT

Last updated

Was this helpful?