AWBeta
Everybody is ordering more and more items from the internet and keeping track of their location throughout delivery is paramount. Unfortunately not all couriering companies offer good enough auto tracking options (at least in Romania, this is the case).
So, AWBot is a messenger bot that is going to give you the current status of your package, the history of all changes and an option to subscribe to any status modifications (the bot giving you message when an update comes through).
How does it work
By providing an AWB, the BackEnd is going to automatically infer the providing couriering firm and crawl its website in order to retrieve the status. (or call their API if they have one)
I am using WitAI in order to map out different kinds of AWBs to couriering firms and to decode user intent, that can be:
- request status of AWB
- request all history
- subscribe to changes from now on
If the couriering firm name cannot be inferred from AWB, I am simply asking them to manually provide the name.
These are the entities defined in Wit:
The architecture of the program is built with modularity in mind, so that at any time the messaging platform of the bot can be changed, and support can be added for new couriering firms.
The interface for both types of entities being:
type IChat interface {
HandleMessages(messageReceivedCallBack func(string, string) []string)
SendMessage(userId string, msgs []string)
}
type ISolver interface {
updateStatuses() SolverResponse
GetStatuses() ([]string, SolverResponse)
GetLastStatus() ([]string, SolverResponse)
GetAwb() string
}
Technologies used
BackEnd:
- GO
Github
https://github.com/msorins/AWBeta
The Project was realised between 2nd and 3rd year of University (summer of 2018)