DEV Community

technonotes-hacker
technonotes-hacker

Posted on

AI - What is AI Agent ? Aii Eye - 3

Recap

  • Zero shot --> No example, only query
  • Few shot --> One or Few examples
  • Contextual --> Background details
  • System --> Boundary conditions or Quadrilles for the particular machine. Role , Tone , Output format .
  • Role --> Persona
  • Self Consistency --> Think in different format eg., 5 and then get the results , then check for the consistent answer among them and give the response.
  • TOT --> Think in different format eg., 5 , Tell me First step and then we can take the relevant and take it forward.

n8n

  • Low code platform.
  • Eg., Zapier, Apache Airflow, n8n, and GitHub Actions.
  • n8n --> Enables automation , Open Source , Freedom to use the code.
  • 72 Entities are there.

  • Every block will have input and output.
  • What is workflow ? --> Sequential of steps ( well defined steps ).Fixed sequence of steps which turns the Input into an Output , it will have triggers , steps or tasks and going to have orders and end result. It will have:
Triggers
Steps/Tasks
Orders/Conditions
Output State
Enter fullscreen mode Exit fullscreen mode

  • AI workflow

  • AI Agent is like a WRAPPER.

  • What is "webhook" ? --> Another Trigger Point. இப்ப நீங்க ஒரு Amazon la Vegitables order பண்றீங்க , Order பண்ணிட்ட பிறகு, it will go to the payment page.After payment it will come back to the Order page . Its done by webhook . webhook will be triggered by the Payment Team ( Eg., Razar )

  • Mainly SLACK based integration , On App Event.

  • Integration like whatsapp , Telegram , etc

Data Transformation Nodes

  • Play with the data.
  • First Node : HTTP --> Method and URL.

  • JASONPLACEHOLDER --> we can test API using this.

  • Once you integrate, you will get the data from the API.

  • From this Mock Data , we can connect "N" of Node.

  • Search for CODE node.

  • Everything is in UPPER CASE now and a new column TIME.
  • Edit Field.

  • Limit Node

  • We are just seeing each ENTITY or NODE working state.

Now another EXAMPLE., Sample data.

  • Split the customers.

  • Now, I want to Aggregate. I have just recreated the data.

Now another EXAMPLE., Sample data.

  • Data is in LIST

  • Two different data with common ID.
  • Merge by Matching fields.

  • Summarise Node.

Integrate with Telegram

  • Expense inserted in Mango DB.

ATS Reviewer

  • Resume [ TBD ]

How to run in Local

  • Both you can run in local - llama.cpp and Ollama .
  • It will run with the PORT and then you can integrate in the code. --> But RAM is required.

Ollama

  • Its a Tool
  • Its a service provider.
  • There will be many models , it will be exposed by the ollama with port number.

Lets Integrate with Telegram

  • Linear Telegram Flow.
  • Telegram as BOTFATHER. We can create BOT from BOTFATHER.

  • Open Telegram in WEB.
  • BOTFATHER tool given by Telegram.

  • New BOT is created with TOEKN.

  • Create a GROUP.

  • Add the BOT to the group.

  • Make the BOT as Admin.
  • Now create in n8n and select the Telegram.

  • Add the token.

  • Publish it.
  • Now add the AI Agent.
  • Connect to GROQ.

Note

  • n8n is it secured ? CORS policy ?

  • Zapier, Apache Airflow, n8n, and GitHub Actions

TBD

  • Jev --> Deterministic Result & Laya

  • What is Power Automate in Microsoft ?

  • Integrate the above with webhook ?
  • You can create a form and then ask the user to submit , once submit you will receive notification by using webhook. [ Try it out ]

  • How we can connect Database in n8n ? What is Calanly ?

Commands may be useful

  • ollama serve/stop
  • sudo lsof -i :11434
  • n8n is running inside the docker means ?

  • Add the 11434 to the compose.yml file

  • Binding done.

  • Some issue is there because , n8n is running inside the docker. [ Check this ]

Top comments (0)