ArcheAI Agent Framework
  • Welcome
  • getting started
    • Installation
  • Environment Variables Config
  • Quick Interaction
  • archeaiframework
    • The Framework
  • Company
    • About
Powered by GitBook
On this page

Quick Interaction

ArcheAI Framework provides an easy way to interact with agents hosted on its backend API at https://api.arche.com. Users can interact with agents using GET, POST.

Methods of Interaction

1. GET Method

You can send a message to an agent using a simple GET request.

Example:

curl "https://api.qude.ai/api/agent/{agentName}/interact?message=Hello!"
  • Replace {agentName} with the name of your agent.

  • Replace Hello! with the message you want to send.

Example Request:

curl "https://api.qude.ai/api/agent/Ayra/interact?message=Hello!"

Example Response:

{
  "agentName": "Ayra",
  "response": "Hello! How can I assist you today?"
}

2. POST Method

For more structured interactions, you can use the POST method with a JSON body.

Example:

curl -X POST "https://api.qude.ai/api/agent/{agentName}/interact" \
-H "Content-Type: application/json" \
-d '{"message": "Hello, Ayra?"}'
  • Replace {agentName} with the name of your agent.

  • Modify the message field in the JSON body with your query.

Example Request:

curl -X POST "https://api.qude.ai/api/agent/Ayra/interact" \
-H "Content-Type: application/json" \
-d '{"message": "Tell me the top 10 holders of a token."}'

Example Response:

{
  "agentName": "Ayra",
  "response": "Here are the top 10 holders of the token you requested..."
}
PreviousEnvironment Variables ConfigNextThe Framework

Last updated 3 months ago