Inspiration
I have always been lazy to post about my career and personal life on social media, not that I don't want to but I end up wasting too much time on it at times, I also find so many advertisements of products and also companies posting on social media about a job role that is vacant. So, I thought of automating such posts just by prompt which can be posted across multiple social media platforms just by a click.
What it does
It takes in a prompt and an image related to it, for example Data Hackathon and the logo of it, it then drafts a message about it just on the basis of the prompt, the better the prompt the better the draft and then posts this in authorized LinkedIn and Instagram accounts.
How we built it
I used Flask to build this application, in order to generate text from a prompt I used OpenAI API, and then I used LinkedIn developer solutions to access their API so that I could post it on LinkedIn as soon as the text and image are generated/given. I then used the meta developer tools and used Instagram Graph API to access my account from my application to automate posts there as well. This application also has a strong signup and login system, it also validates inputs.
Challenges we ran into
The biggest challenge for me was I had to take care of it all alone as I could not find a teammate I was looking for. Figuring out LinkedIn developer solutions was very hard although I had a piece of it working before but the token got expired and I was not able to refresh it for some reason, so i had to build everything from the start as it was not straight forward, I had to play around the documentation a lot, it used OAuth 2.0 authorization, since I was creating a personal application I was supposed to use 2-legged but it did not work and then I started trying out 3-legged and it was was working until last step where I have to get my URN, but that step unfortunately failed and again I had to surf through the whole documentation and finally found how to access the information I needed, this was the biggest challenge I faced.
Accomplishments that we're proud of
I am proud of myself as I somehow completed the Automedia, and I also created a decent documentation for people who use LinkedIn API for the first time, I hope that helps a few at least.
What we learned
I learned even more about 3-legged and 2-legged authorizations and also learned about Instagram graph API to automate Instagram
What's next for Automedia
The next step for Automedia would be to use google's OAuth so that people can use their google accounts to sign up and also automate twitter mostly using llama and tweepy cause I want to try out llama as well especially after their new model got released.
Built With
- css
- flask
- html
- instagramgraphapi
- linkedinapi
- openai
- python
- sqlalchemy
Log in or sign up for Devpost to join the conversation.