Tutorial 3: Replace human consultant with AI

🛑 These tutorials are for Neuron Beta OGs, if you don't have Beta OG status in discord then you will not be able to complete this tutorial.

In the previous tutorial Buy consultancy via chatwe designed a chat UI to reply to chat messages from a connected peer and act as consultants. In this tutorial we do something similar, the difference is that we will allow an AI agent to supply the seller's messages instead. This flow is slightly more complicated thus if you haven't followed the previous tutorial do so now and make sure you complete the hello world tutorial to be able to continue.

Action 1 : Import the AI seller consultant template

  • Goto "template"

  • Select the template

  • Click import

  • Open the newly appeared tab

You should end up with this flow.

Action 2. Setup the "Consultant Seller config" and "Neuron P2P Out"

Setup the Consultant seller config and link it with the Neuron P2P out. If you don't know how to do this, go to Your first program: Hello World! . Remember to hit deploy and wait for connection to become active.

You are now ready to send data into your seller via a peer to peer connection.

Action 3: Create an account with OpenRouter and obtain a key

Go to OpenRouter and get a free key; make sure you understand the terms and remember this is a tutorial and you should not use these examples in a production environment. Then enter they key by double clicking on the "My AI Model" node.

  • Hit Done

  • Hit Deploy

Action 4: Open a new browser tab at localhost:1880/ui

We will be using this chat window to monitor messages that are sent between AI agent and the buyer, but don't need to write anything in it.

Action 5: Communicate our EVM address to the buyer in discord

  • copy your EVM address by clicking the "Consultant Seller Config" node. Here's a reminder on how to do that.

  • Goto #node-builder-builders on Discord https://discord.gg/4APVGrwM Note : the channel is a public channel and messages you send will be visible to other BetaOGs!

  • Type the following message:/tech-support test my seller <my-evm-address>

  • Click on the message thread and type in the following messages

    • Let us start chatting

    • What is your name?

  • Observe the UI at localhost:1880/ui and note that the AI bot is replying to the messages received from discord! You can ask more questions by entering them on discord, just remember to give your local agent some time to have a chance to process the request and reply.

In the video clip, you can see the final sequence of actions unfold.

Last updated