AutoGPT/docs/content/platform/blocks/blocks.md

9.2 KiB

AutoGPT Blocks Overview

AutoGPT uses a modular approach with various "blocks" to handle different tasks. These blocks are the building blocks of AutoGPT workflows, allowing users to create complex automations by combining simple, specialized components.

Below is a comprehensive list of all available blocks, categorized by their primary function. Click on any block name to view its detailed documentation.

Basic Operations

Block Name Description
Store Value Stores and forwards a value
Print to Console Outputs text to the console for debugging
Find in Dictionary Looks up a value in a dictionary or list
Agent Input Accepts user input in a workflow
Agent Output Records and formats workflow results
Add to Dictionary Adds a new key-value pair to a dictionary
Add to List Adds a new entry to a list
Note Displays a sticky note in the workflow

Data Processing

Block Name Description
Read CSV Processes and extracts data from CSV files
Data Sampling Selects a subset of data using various sampling methods

Text Processing

Block Name Description
Match Text Pattern Checks if text matches a specified pattern
Extract Text Information Extracts specific information from text using patterns
Fill Text Template Populates a template with provided values
Combine Texts Merges multiple text inputs into one
Text Decoder Converts encoded text into readable format

AI and Language Models

Block Name Description
AI Structured Response Generator Generates structured responses using LLMs
AI Text Generator Produces text responses using LLMs
AI Text Summarizer Summarizes long texts using LLMs
AI Conversation Facilitates multi-turn conversations with LLMs
AI List Generator Creates lists based on prompts using LLMs

Web and API Interactions

Block Name Description
Send Web Request Makes HTTP requests to specified web addresses
Read RSS Feed Retrieves and processes entries from RSS feeds
Get Weather Information Fetches current weather data for a location
Google Maps Search Searches for local businesses using Google Maps API

Social Media and Content

Block Name Description
Get Reddit Posts Retrieves posts from specified subreddits
Post Reddit Comment Posts comments on Reddit
Publish to Medium Publishes content directly to Medium
Read Discord Messages Retrieves messages from Discord channels
Send Discord Message Sends messages to Discord channels

Search and Information Retrieval

Block Name Description
Get Wikipedia Summary Fetches summaries of topics from Wikipedia
Search The Web Performs web searches and returns results
Extract Website Content Retrieves and extracts content from websites

Time and Date

Block Name Description
Get Current Time Provides the current time
Get Current Date Provides the current date
Get Current Date and Time Provides both current date and time
Countdown Timer Acts as a countdown timer

Math and Calculations

Block Name Description
Calculator Performs basic mathematical operations
Count Items Counts items in a collection

Media Generation

Block Name Description
Ideogram Model Generates images based on text prompts
Create Talking Avatar Video Creates videos with talking avatars
Unreal Text to Speech Converts text to speech using Unreal Speech API
AI Shortform Video Creator Generates short-form videos using AI
Replicate Flux Advanced Model Creates images using Replicate's Flux models

Miscellaneous

Block Name Description
Transcribe YouTube Video Transcribes audio from YouTube videos
Send Email Sends emails using SMTP
Condition Block Evaluates conditions for workflow branching
Step Through Items Iterates through lists or dictionaries

Google Services

Block Name Description
Gmail Read Retrieves and reads emails from a Gmail account
Gmail Send Sends emails using a Gmail account
Gmail List Labels Retrieves all labels from a Gmail account
Gmail Add Label Adds a label to a specific email in a Gmail account
Gmail Remove Label Removes a label from a specific email in a Gmail account
Google Sheets Read Reads data from a Google Sheets spreadsheet
Google Sheets Write Writes data to a Google Sheets spreadsheet
Google Maps Search Searches for local businesses using the Google Maps API

GitHub Integration

Block Name Description
GitHub Comment Posts comments on GitHub issues or pull requests
GitHub Make Issue Creates new issues on GitHub repositories
GitHub Read Issue Retrieves information about a specific GitHub issue
GitHub List Issues Retrieves a list of issues from a GitHub repository
GitHub Add Label Adds a label to a GitHub issue or pull request
GitHub Remove Label Removes a label from a GitHub issue or pull request
GitHub Assign Issue Assigns a user to a GitHub issue
GitHub List Tags Retrieves and lists all tags for a specified GitHub repository
GitHub List Branches Retrieves and lists all branches for a specified GitHub repository
GitHub List Discussions Retrieves and lists recent discussions for a specified GitHub repository
GitHub Make Branch Creates a new branch in a GitHub repository
GitHub Delete Branch Deletes a specified branch from a GitHub repository
GitHub List Pull Requests Retrieves a list of pull requests from a specified GitHub repository
GitHub Make Pull Request Creates a new pull request in a specified GitHub repository
GitHub Read Pull Request Retrieves detailed information about a specific GitHub pull request
GitHub Assign PR Reviewer Assigns a reviewer to a specific GitHub pull request
GitHub Unassign PR Reviewer Removes an assigned reviewer from a specific GitHub pull request
GitHub List PR Reviewers Retrieves a list of all assigned reviewers for a specific GitHub pull request

This comprehensive list covers all the blocks available in AutoGPT. Each block is designed to perform a specific task, and they can be combined to create powerful, automated workflows. For more detailed information on each block, click on its name to view the full documentation.