Alt Text

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

  1. Create the necessary secrets
    1. Create a telegram application and copy the tokens
      1. TELEGRAM_API_HASH
      2. TELEGRAM_API_ID
      3. TELEGRAM_API_SESSION
    2. Create an oauth secret with the scope tweet.write for X (Twitter) and connect it. Call it TWITTER_API_BEARER_TOKEN so it directly works with the provided template
  2. Go to deployments and create a new deployment
    1. Enter any name, e.g. ai-forward-example
    2. Enter as source repoUrl: github.com/Edurata/edurata-workflows and path examples/ai-image-forward and ref main
    3. Save and deploy
  3. 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.