Skip to content
by Unity Nodes
NEAR Protocol

Agents Interactions w NEAR Intents Alex

about 15:00 long

Nothing is loaded from YouTube until you press play, and then without tracking cookies.

About this video

Alex Shevchenko showcases Near Intents and AI trading agents, highlighting how users can automate crypto investments using AI-powered decision-making. The DCA Agent, developed by Vadim from NearAI, analyzes market trends via CoinGecko, selects optimal investments, and executes trades through Near Intents—all without requiring user intervention.

This demo walks through how AI agents interact with Near Intents, the power of decentralized trading automation, and how users can leverage AI-driven investing without deep crypto knowledge.

x.com/AlexAuroraDev

Timestamps & Section Labels: 00:00 – Intro | Near Intents and AI-powered investing 01:07 – Introducing the DCA Agent | AI investing tool built by NearAI 02:31 – How It Works | Fetching market data and executing trades 04:49 – Near Intents Integration | How AI agents use the protocol 06:00 – Live Demo | Investing USDC via AI 08:52 – Transaction Execution on Near Blockchain | AI decision-making in action 10:07 – Future Plans | Expanding use cases and liquidity 12:19 – Twitter Integration | How to invest via Twitter 14:00 – Q&A | Addressing liquidity and scaling

NEAR is the Blockchain for AI Website: near.org NEAR AI: near.ai Intents: near.org/intents Chain Abstraction: proximity.dev Sharding: nearone.org

For the devs GitHub: github.com/near Dev Docs: docs.near.org Devhub: devhub.near.page @NEARDevHub

Connect with socials Twitter:   / nearprotocol   Blog: near.org/blog Medium:   / nearprotocol   #NEAR #nearprotocol #NEARAI

Transcript

2,176 words

Captions as YouTube publishes them, usually machine-generated, so product and people names can be misheard.

  1. 0:00

    my mom uses near intense with pasis so why aren't you thank you uh and besides the talk we actually have the uh an additional uh kind of live coding or like a demo thing I'm not going to do the coding but I'm going to show you one interesting thing how AI agents are able and are actually working today with near intense and I would like to give a big big shout out here to Vadim from neari who has been actually building this um a

  2. 0:42

    DCA agent that I'm going to show you um and uh he's the The Mastermind behind it U I'm just kind of stealing a little bit of his Fame and showing this to all of you but credit everything to him so what I'm going to show you is an AI agent I'm going I'm going to make it super large an AI agent that is available right now at um app. near. you can go there there is a section around

  3. 1:17

    the agents and the uh agent is called D defi how how do you read this I still didn't figure out how to read this but let's call it D and uh this agent what it is able to do I'm not sure whether there is an there the description is you know as you can see as as usual in the alpha projects this is an alpha version of it but this is an agent who is able to accept your money in the form of usdc on

  4. 1:50

    the near blockchain it is able to analyze the crypto Trends based on the price data from the Co gecko it is able to make a decision in which tokens to invest and it does this investment through the near intense it holds this portfolio of tokens for certain amount of time and then at one day for example it liquidates this position and sends you back this money literally what this a agent is

  5. 2:30

    it is a tool for anyone to invest in crypto without a knowledge of anything of of crypto it's like U it's like if you're if you're a type of person who is buying you know lottery tickets or something like that you can you can do it like that probably there will be at some point in time several different profiles how you can invest invest more into riskier assets invest more into

  6. 2:55

    more stable assets right and stuff like that but this is something that you can do already right now this a agent um has obviously quite a lot of source files but let's let's check it um so there is a by the way all of this is just written in Python so it can work as an ordinary python code um I know that the most uh hyped part about near is tees so you can put this AI agent inside of the trusted execution environment so that it becomes a non-custodial or like a shade agent

  7. 3:35

    that kandall was uh U launching just last week so this can work as a shade agent and um it has the uh the part for the analysis of the trend so as you can see here there is a crypto list of some particular tokens that are listed on the new tense and this agent is trading these tokens um uh and uh what you're able to do is to actually update the trends and this logic is working through

  8. 4:05

    um uh through getting the information from the coin gecko API so this is a this is a function that is called get investment recommendation and uh but like inside of it it's it's a little bit down there but there is a fetch realtime data so actually this agent is fetching data from the coin geeko right you can again you can open it it's it's fully open source and fully available

  9. 4:30

    now uh once it gets the information and by the way this agent is running this evaluation on its own um once per hour or something like this then what it has is the part that actually interacting with intent right so this is a code that Vadim needed to write in order to make sure that this program this bot is able to execute respective transactions within the near intent protocol and if you're going to go into this stuff you're going to see some things that are very specific to the

  10. 5:10

    near intents right so this is the RPC uh this is the Endo where you're able to get the uh prices of the tokens there is an information about um you know some specific messages how the intense protocol is working then this messages are getting signed uh you're able to yeah this is the thing that that is actually happening you just this is a function that creates a message that should be signed you know and like there

  11. 5:41

    is a generation of nonsense there are some different functions that are able to encode and decode data like all of the typical things that you expect out of the code that is working with the normal blockchain at the moment right so for example this is how uh how the pay load is is created right for for the for the intents yeah serialization data you know all of the stuff there is a

  12. 6:08

    separate function for withdrawing of the intents right so and um yeah like all of the all of the typical things and uh the last thing that I would like to show uh to you uh probably probably nothing I don't want to show you anything in the code you can you can check it out but I've tried it yesterday I've tried it yesterday and uh um at the moment I back then I tried it um uh from the console from the terminal I'm going to show you the the actual transactions that were happening we're going to see it on near

  13. 6:44

    blockchain but the intention for this agent is to be able to in to be invoked directly from Twitter and actually today Vadim was showing how he was invoking an investment out of crypto by just mentioning G near AI which is the AI bot um that is that is existing in the in the near protocol so so check out his his Twitter account it is uh Zak Cil z a c o d i l and uh um and he and his

  14. 7:17

    latest tweet there or one of the latest tweets there so he was actually invoking this AI agent there but for the sake of uh just demonstrating you how things have have been happening so this is actually my terminal this is what I this is I hope you see at least a little bit I can make it a little bit bigger so um this is actually the the call that I was I was executing and as you can see there was a

  15. 7:48

    transaction which is a transfer of the usdc token this this strange token on near is usdc so I was transferring 10 usdc uh probably probably this was just one usdc 1 2 3 4 5 yeah this was just one usdc there was a second transaction to invoke it with 10 usdc yeah this is it so this transaction I was transferring 10 usdc to this agent to this smart contract this is not an agent

  16. 8:22

    this is a smart contract D.G neari near and I was together with this trans I was adding a message that I am depositing on behalf of a Twitter ID which is mine Twitter ID and this is exactly how things are going to work with the integration with Twitter right so I have been depositing this trans have been depositing and then this transaction was executed you can see here that uh this is a transaction there is like a key whatever the things and in inside of the logs you are able to see

  17. 9:01

    that um uh that here um was emitted an event that actually started to run the agent and so what happened in this transaction is that this smart contract accepted my deposit and this you can think of this smart contract as a wult where uh the money of all of the users who are using this AI agent held because AI agent has a kind of hot key and in case it is broken right uh then you can you can withdraw the money from the agent itself so it's much better to have a smart

  18. 9:41

    contract where you are storing the data and storing the money they are parked there uh instead of of of an agent that has a hotkey so I was depositing money inside of this smart contract and this smart contract was transferring this money into the AI agent so for that AI agent is able to use intense protocol in order to purchase the position for me so uh we are able to to find this

  19. 10:11

    transaction this is actually this transaction on near blocks and uh as you can see I was transferring oh sorry I was transferring I was transferring uh this uh 10 usdc into into diii right and uh if we're going to see the if we going to look at the execution uh at execution um yeah actually these are the logs that were that that were invoked there um what this agent did uh afterwards it was was uh pushing several

  20. 11:02

    transactions onto near in t in order to take this 10 usdc deposit inside of the near intense protocol and purchase tokens this particular transaction unfortunately was not including any split of the tokens in between different assets because yesterday the market was going down all of the assets were uh performing worse than Bitcoin so that my AI agent decided that the most wise thing to do would be to invest in Bitcoin only but this was what the AI

  21. 11:35

    agent figured out only from the data from the coin market cap or sorry from the coin gecko right and actually what I was able to do is check my Capital position right so the agent was and going to create an a position for me and this position uh as you can see here was that it was 106 Sates because the token was only Bitcoin so the agent in the end purch decided to purchase only Bitcoin for me and returned this this sets back into the uh this smart contract as I was describing

  22. 12:15

    earlier and uh hopefully today I'm going to receive my Bitcoin back it is going to automatically it was set for it's just a single day it is going to automatically sell this Sates back into usdc and automatically return it to my account and this is how you're able to do how you're able to in make create interactions in between the AI agents and near intense protocol right here right now so the actual Vision that I

  23. 12:46

    was sharing with you making sure that the I agents are able to communicate they're able to interact with some kind of additional services and are able to find counterparties to execute particular things and in this case they were market makers who were providing liquidity and creating markets inside of the neuron tents that was a counterparty for this AI agent now this thing is actually fully working right now maybe

  24. 13:11

    within a a little bit limited use case at the moment but we are on the road to build and incorporate much more use cases in the future follow B for additional updates on uh on this stuff I think it is super cool already today we are able to invoke it um from Twitter and um I didn't test it yet but I'm going to try it out and if you are willing to build your own AI agent uh go check uh the near. A and figure out all

  25. 13:42

    of the stack that is available there there are lots of things that are available there and you can build use cases like this right away just writing some python code so thanks everyone take questions Alex questions questions I have a question Alex I have a question um when can we expect more liquidity on intents um so probably not everyone have these massive backs as David have

  26. 14:29

    has so at the moment uh on near intense you're able to swap $1 million us of Bitcoin in 1 million US dollars worth of near salana or Stables uh unfortunately we cannot serve um David but uh but for everybody for all of the normies who are swapping kind of within this amount you are already able to do it good great stuff thank you uh questions from anyone else all right thank you Alex okay

  27. 15:00

    thanks you