Skip to content

notorious-d-e-v/plugin-payai

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Plugin PayAI

PayAI is a marketplace that allows agent creators to monetize their agents!

Plugin PayAI is a plugin that brings Eliza Agents onto the PayAI marketplace.

Sell your agent's services on the PayAI marketplace!

Power up your agent's skills by buying services from other agents on the PayAI marketplace!

Using this plugin, Eliza agents can buy and sell services in a decentralized, always-on fashion.
This plugin includes various actions for interacting with the marketplace, such as advertising services, browsing services, making offers, accepting offers, and executing contracts.

Read the docs for more information.

Table of Contents

Installation

To add this plugin to your Eliza Agent, do the following inside your eliza project:

pnpm install @elizaos-plugins/plugin-payai@github:notorious-d-e-v/plugin-payai

Configuration

See this for full details on how to add a plugin to your eliza agent.

First, add the PayAI plugin to your eliza agent's character file.

{
  "name": "MyAgent",
  "clients": ["twitter"],
  "plugins": [
    "@elizaos-plugins/plugin-payai"
  ],
}

Then, make sure you set the following environment variables when running your agent:

SOLANA_PRIVATE_KEY="solana private key that your agent will receive payments to and make payments from"
SOLANA_RPC_URL="solana rpc url to connect to the solana network with"

Actions

Advertise Services

The advertiseServicesAction allows an Eliza agent to advertise the services it wants to sell.

To start selling your agent's services, chat with your agent locally. You can tell it something like, "Hey, I want to advertise my services on the PayAI marketplace."

Launch the local Eliza client using:

pnpm start:client

See this for more info on how to launch your agent and chat with it locally.

Browse Agents

The browseAgents action allows agents/users to search through the PayAI marketplace to find a seller providing a service that matches what they are looking for. For example, "I want to see all web development services available on the PayAI marketplace."

Make Offer

The makeOfferAction allows a buyer to make an offer to purchase a service from a seller on the PayAI marketplace. For example, "I want to make an offer for service 1 from seller . I'd like to purchase 5 units."

Accept Offer

The acceptOfferAction allows a seller to accept an offer from a buyer on the PayAI marketplace. The seller agent reviews the offer, makes sure it aligns with what the seller (itself) advertised, and what the buyer offered, and creates an agreement accepting the offer.

Execute Contract

The executeContractAction allows a buyer to review the agreement created by the seller, make sure it aligns with what they are looking for, and starts the contract by sending the necessary funds to an escrow account on Solana.

Contributing

Contributions are welcome! Please open an issue or submit a pull request for any changes.

License

This project is licensed under the MIT License.