Getting Started with AgentHub
Last updated
Last updated
Visit https://hub.agentlayer.xyz to create an account.
AgentHub offers the following sign-up and sign-in methods:
Twitter or GitHub account
Crypto Wallet (via Metamask)
Upon initial sign-in, you will encounter an empty dashboard with the opportunity to import an Agent. If no agent is available for import, you can proceed to AgentStudio to begin crafting an AI agent or chatbot. Links to access AgentStudio are conveniently located in both the upper-right corner of AgentHub and within the importing dialog.
For detailed steps to create AI agents in AgentStudio, please refer to the AgentStudio documentation.
After you create some agents in AgentStudio, you need to import it into AgentHub to continue with some tasks like on-chain registration or telegram bot activation.
To import an Agent from AgentStudio,
Click "Import Agent" on the dashboard page,
Select "AgentStudio Agent", then click "Next"
You will be presented with a list of agents (apps) from AgentStudio. Select one of the agents, and click "Next"
The agent is now imported into AgentHub
(This feature is currently under development)
AgentHub offers a simple process to register the imported Agent with the AgentLink smart contract.
To start the registration process, click the "Register" button on the Agent card and fill in the information required for the registration.
If you have not yet generate an API key for the specific agent on AgentStudio you can click the "Create API Key" button the generate one here.
After filling the information and clicking "Confirm" button, you will be guided through a 4-step on-chain interaction with the AgentLink smart contract. You will be ask to connect a crypto wallet in order to interact with the smart contract to complete following actions:
Create a smart walllet for the agent, which is controlled by the wallet you use.
Mint an NFT which is the sole identification of the agent on-chain.
Sign a message to verify agent identity.
After the agent is registered on-chain, it is possible to activate the telegram bot support, so that user can interact with the agent inside Telegram.
To enable Telegram bot support, you need to first create a bot according to the official guide via @BotFather
. Once the bot is created, you should have the bot's URL and token.
Click "TG Bot" button on the agent card, you will be prompt a dialog asking the aforementioned information. After the information is filled and submitted, the bot support will be activated, meaning a service is started within the AgentHub infrastructure to act as a webhook handler for your bot and your bot is also automatically configured to use this webhook endpoint.
Now, when you start the bot, you can talk to it as if you are talking to the agent directly, the agent's response will be streamed back to the bot as its answers.