An AI-RPA agent based on
gem install blackstack-jarvis
require 'blackstack-jarvis'
jarvis = BlackStack::Jarvis.new(
# ths is to connect with your OpenAI account.
# reference: https://platform.openai.com/docs/api-reference/authentication
openai_api_key: '<your open AI api key here>',
openai_model: 'gpt-4-1106-preview',
# this is to operate browsers using AdsPower.
# reference: https://github.com/leandrosardi/adspower-client
adspower_api_key: '<your adspower api key heere>',
# this is to use dropbox as a cloud storage of screenshots, audios and text files.
# reference: https://github.com/leandrosardi/my-dropbox-api
dropbox_refresh_token: '<your dropbox refresh token here>',
)
Create a text file with a command like this:
echo -e 'What is the most impressive invention of Leonardo Davinci?' > ~/some.text
Then, you can refer Jarvis to such a file to find an instruction.
p jarvis.q('I wrote some instructions in the file ~/jarvis.txt. Please read it and answer.')
# => "The most impressive invention of Leonardo Davinci is the the flying machine."
In the next sections, we'll store some information in files like: