Invoice Chating app under constructions a chat app where i use luis.ai #MICROSOFT as a bot that helps to understand the messages so eventually create an invoice as a pdf file.
// in progress.
making an invoice by chatting using luis.ai
a tool like this might help : https://github.com/wanasit/chrono
the app seems to not redirect to the invoice when it's done taking input
This logic is well thought out! However as you can see it gets complex, very very quickly.
Maybe take a look at a finite state machine, it's a great skill to learn in computing and it's the perfect algorithm to use here!
https://www.smashingmagazine.com/2018/01/rise-state-machines/
InvoiceChatApp/ChatApp/server.py
Line 67 in a6526c6
I think this works fine in development but won't work in production (at least not with stability), you can't be guaranteed that INVOICE will have the data you need (e.g. if more than one server is running your code the other server INVOICE will be blank) also what will you do if more than one user is using the app.
I would change this so the client app, web app, stores the settings and sends them all to this endpoint via a GET request and query params e.g. invoice?a=1,b=2 etc...
InvoiceChatApp/ChatApp/server.py
Line 44 in a6526c6
make the chat box take exactly one input every time for example if i'm about to enter " i want to make an invoice" stop taking other input till the program respond
InvoiceChatApp/ChatApp/server.py
Line 13 in a6526c6
to make the pdf look nice
if you type inside the box something like <h1>hello</h1> the size of the word will change when it's uploaded.
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.