AI Quote generator bot
This workflow is taking pictures from a telegram channel, extracting labels from the pictures with AWS Rekognition, generating a quote with chatgpt and lastly tweeting them to X (Twitter).
Showcase of features
This workflow showcases all important features of the platform:
- using environment variables
- Using oauth secrets
- using meta values
- using dependencies between steps
Quickstart
- Create the necessary secrets
- Create a telegram application and copy the tokens
- TELEGRAM_API_HASH
- TELEGRAM_API_ID
- TELEGRAM_API_SESSION
- Create an oauth secret with the scope
tweet.write
for X (Twitter) and connect it. Call itTWITTER_API_BEARER_TOKEN
so it directly works with the provided template
- Create a telegram application and copy the tokens
- Go to deployments and create a new deployment
- Enter any name, e.g.
ai-forward-example
- Enter as source repoUrl:
github.com/Edurata/edurata-workflows
and pathexamples/ai-image-forward
and refmain
- Save and deploy
- Enter any name, e.g.
- Run the deployment
Workflow
Most important functions
- get-telegram-pictures-today: This function is fetching pictures from a telegram channel.
- extract-info: This function is extracting labels from an image using AWS Rekognition.
- generate-quotes: This function is generating a quote from a label. It is using the chatgpt library.
- tweet: This function is tweeting a message with api calls.