juanvf / personal_bot Goto Github PK
View Code? Open in Web Editor NEWI created this bot to read from my personal mail and handle my personal data.
License: Other
I created this bot to read from my personal mail and handle my personal data.
License: Other
Dependencies:
Context:
An user or an external trigger must be able to request a new payment endpoint in order to generate its latest payments that comes from its personal email. The user can expect the data that comes from its personal email will be saved in the Payments Table in database.
What is expected to have:
/payments/generate
with POST
method. This method must be protected using the Verify Token Middleware in the apigw/auth
file. Also will receive the ID Token from Google OAuth, you can assume this ID Token is in JWT format and if you decode it and verify it, you can get the user email.{
"id_token" : "<Google ID Token>"
}
ID Token
and get the user email, get the user id
using that email, get the last thread id
readed by the bot, and read the latest emails from the user mail and then process then, so you get a [ ]*Payment
type for each new payment, all of them marked as unprocessed.payment: <the email data>\ntags:
Then GPT-3 will return the tags possibly, because is an AI, in the next format
tag1, tag2, ..., tagN\n
200 OK
Http Status.Nice to have:
Spikes for this issue:
Given the implementation flow proposed in the spike, the goal of this issue is to implement it to the project.
What is expected to have:
Context:
An user will have unprocessed payments to be updated in his general balance. An user or an external trigger must be able to request a new balance endpoint and have a current state of its balance.
What is expected to have:
balances/update
with POST
method. This method must be protected using the Verify Token Middleware in the apigw/auth
file. Also will receive the ID Token from Google OAuth, you can assume this ID Token is in JWT format and if you decode it and verify it, you can get the user email.{
"id_token" : "<Google ID Token>"
}
The project currently has two currencies to be supported, CRC and USD. We need to find a data source for getting the current value of the currencies.
What is expected to have:
Nice to have:
Context:
All the current payments are stored in DB, but there is no way to know if they were already processed. The idea is to add a new field to the payments table to be able to mark the payments as processed or unprocessed.
What is expected to have:
Nice to have:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.