This commit is contained in:
Bentlybro
2025-01-12 12:42:45 +00:00
parent a4bd7c9b58
commit f6b00f07ce
15 changed files with 0 additions and 703 deletions

View File

@@ -1,39 +0,0 @@
## Agent Executor
### What it is
A specialized block that allows one agent to execute another agent, enabling nested agent functionality within your workflow.
### What it does
This block takes an existing agent (identified by its graph information) and executes it as part of the current agent's workflow. It manages the execution process and handles the communication between agents, allowing for complex, nested automation scenarios.
### How it works
The block connects to an execution manager and event bus system to:
1. Initialize the execution of the specified agent
2. Monitor the execution progress
3. Collect and process any outputs generated
4. Handle various execution states (completion, termination, or failure)
5. Forward relevant outputs to the parent agent
### Inputs
- User ID: The identifier for the user running the agent
- Graph ID: The unique identifier of the agent (graph) to be executed
- Graph Version: The specific version number of the agent to run
- Data: The input information that will be passed to the executed agent
- Input Schema: The structure definition that describes what kind of input the agent accepts
- Output Schema: The structure definition that describes what kind of output the agent produces
### Outputs
This block functions as a pass-through for the outputs generated by the executed agent. The outputs are dynamically generated based on the executed agent's configuration and can include:
- Named outputs: Each output is labeled with a specific name
- Output data: The actual content or results produced by the executed agent
### Possible use case
Imagine you have a main agent that handles customer service requests. Within this agent, you might want to execute a specialized agent that performs detailed product analysis. The Agent Executor block allows you to:
1. Receive a customer query about a product
2. Execute a specialized product analysis agent
3. Collect the analysis results
4. Use those results to formulate a response to the customer
This enables modular agent design where specialized agents can be combined to handle complex tasks while maintaining organization and reusability.

View File

@@ -1,55 +0,0 @@
## AI Image Generator
### What it is
A versatile AI-powered image generation block that creates custom images based on text descriptions using various AI models and styles.
### What it does
Transforms text prompts into high-quality images with customizable formats, styles, and dimensions using different AI models like Stable Diffusion, Flux, and Recraft.
### How it works
1. Takes a text prompt and image preferences from the user
2. Connects to the selected AI model through Replicate's API
3. Processes the request with appropriate parameters based on the chosen model
4. Returns a URL containing the generated image
5. Handles errors and provides appropriate feedback
### Inputs
- Credentials: Replicate API key required to access the image generation services
- Prompt: Text description of the image you want to generate (e.g., "A red panda using a laptop in a snowy forest")
- Model: Choice of AI model to use for generation:
- Stable Diffusion 3.5 Medium
- Flux 1.1 Pro
- Flux 1.1 Pro Ultra
- Recraft v3
- Image Format: Choice of image dimensions:
- Square: Ideal for profile pictures and icons (1:1 ratio)
- Landscape: Traditional photo format (4:3 ratio)
- Portrait: Vertical photos (3:4 ratio)
- Wide: Cinematic format (16:9 ratio)
- Tall: Mobile-friendly format (9:16 ratio)
- Image Style: Various artistic styles including:
- Realistic (with variations like black & white, HDR, natural light)
- Digital art
- Pixel art
- Hand-drawn
- Sketch
- Poster
- 3D
- And more
### Outputs
- Image URL: Web address where the generated image can be accessed
- Error: Description of any issues that occurred during image generation
### Possible use cases
- Creating custom illustrations for blog posts or articles
- Generating profile pictures for social media
- Designing marketing materials with specific themes
- Creating concept art for projects
- Producing custom wallpapers for desktop or mobile devices
- Generating visual assets for presentations or websites
- Creating mockups for design projects
- Producing themed images for social media campaigns

View File

@@ -1,47 +0,0 @@
## AI Music Generator
### What it is
A powerful tool that generates music using Meta's MusicGen model through the Replicate platform. This block transforms text descriptions into original musical compositions.
### What it does
Creates unique pieces of music based on text descriptions, allowing users to specify various parameters that control the generation process and output format of the audio.
### How it works
1. Takes a text prompt and various musical parameters as input
2. Connects to the Replicate platform using provided credentials
3. Processes the request using Meta's MusicGen model
4. Generates an audio file based on the specifications
5. Returns a URL where the generated audio can be accessed
6. Includes automatic retry mechanisms if the generation fails
### Inputs
- Credentials: Replicate API key required for accessing the service
- Prompt: Text description of the music you want to generate (e.g., "An upbeat electronic dance track with heavy bass")
- Model Version: Choice of three models (stereo-large, melody-large, or large)
- Duration: Length of the generated audio in seconds
- Temperature: Controls creativity level (higher values = more diverse output)
- Top K: Controls sampling diversity by limiting to the most likely options
- Top P: Alternative sampling method using cumulative probability
- Classifier Free Guidance: Controls how closely the output follows the input description
- Output Format: Choice between WAV or MP3 format
- Normalization Strategy: Method for normalizing the audio (loudness, clip, peak, or rms)
### Outputs
- Result: URL pointing to the generated audio file
- Error: Description of any issues that occurred during generation
### Possible use cases
- Creating background music for videos or presentations
- Generating custom sound effects for games or applications
- Producing demo tracks for musical projects
- Creating ambient music for installations or events
- Prototyping musical ideas quickly
- Generating unique soundtracks for podcasts or short films
### Notes
- The block includes automatic retry functionality (up to 3 attempts) if generation fails
- Default settings are optimized for general use but can be customized for specific needs
- The stereo-large model is set as the default for optimal quality
- Generation time may vary based on the requested duration and complexity of the prompt

View File

@@ -1,48 +0,0 @@
## AI Shortform Video Creator
### What it is
A powerful tool that creates short-form videos using AI technology through the revid.ai service. This block combines text, visuals, voice narration, and music to generate engaging video content.
### What it does
Transforms written scripts into complete videos by:
- Converting text to AI-generated voice narration
- Adding visual elements based on text descriptions
- Including background music
- Combining all elements into a cohesive video with specified dimensions and quality
### How it works
1. Takes a script with spoken text and visual descriptions
2. Creates a webhook to monitor the video creation process
3. Sends the creation request to revid.ai with all specified parameters
4. Monitors the creation process until completion
5. Returns the final video URL once ready
### Inputs
- Credentials: API key credentials for accessing the revid.ai service
- Script: Text content with spoken dialogue and visual descriptions in brackets
- Ratio: Video aspect ratio (default: 9/16 for vertical videos)
- Resolution: Video quality setting (default: 720p)
- Frame Rate: Video smoothness setting (default: 60 fps)
- Generation Preset: Visual style for AI-generated content (options include Default, Anime, Realism, etc.)
- Background Music: Choice of music track from available options
- Voice: Selection of AI voice for narration (options include Lily, Daniel, Brian, etc.)
- Video Style: Type of visuals to use (Stock Videos, Moving AI Images, or AI Video)
### Outputs
- Video URL: Direct link to the completed video
- Error: Description of any issues that occurred during video creation
### Possible use cases
- Creating social media content for platforms like TikTok or Instagram
- Generating educational content with visual demonstrations
- Producing product demonstrations with narration and visuals
- Creating engaging marketing videos with minimal effort
- Developing automated content for social media campaigns
- Producing quick explainer videos with professional narration
Example Script:
"[close-up of a coffee cup] Start your morning right with the perfect cup of coffee. [barista pouring latte art] Our expert baristas craft each drink with precision and care."
This block is particularly useful for content creators, marketers, and businesses looking to create professional-quality short-form videos without extensive video production expertise or resources.

View File

@@ -1,121 +0,0 @@
# Basic Blocks Documentation
## Store Value
### What it is
A simple block that stores and forwards values without modifying them.
### What it does
Takes an input value and makes it available for reuse multiple times without changes.
### How it works
Stores either a provided constant value or the input value and makes it available as output whenever needed.
### Inputs
- Input: The value to be stored when no constant data is provided
- Data: A constant value to be stored (optional)
### Outputs
- Output: The stored value (either from data or input)
### Possible use case
When you need to reuse a value multiple times in different parts of your workflow, such as a configuration setting or a common text string.
## Print To Console
### What it is
A debugging tool that displays text in the console.
### What it does
Prints the provided text to the console for debugging purposes.
### How it works
Takes the input text and displays it in the console with a ">>>>> Print:" prefix.
### Inputs
- Text: The message to be printed to the console
### Outputs
- Status: Confirmation that the text was printed ("printed")
### Possible use case
When debugging a workflow and need to see intermediate values or confirm that certain steps are being executed.
## Find In Dictionary
### What it is
A tool for retrieving values from dictionaries, lists, or objects.
### What it does
Looks up values using a specified key in various data structures.
### How it works
Searches for the provided key in the input data structure and returns the corresponding value if found.
### Inputs
- Input: The dictionary, list, or object to search in
- Key: The key to look up
### Outputs
- Output: The found value for the given key
- Missing: The original input if the key wasn't found
### Possible use case
When you need to extract specific information from complex data structures, such as getting a user's email from a user profile dictionary.
## Agent Input
### What it is
An interface block for receiving input values in a workflow.
### What it does
Provides a way to accept and validate input values with various configuration options.
### How it works
Creates an input interface with customizable settings like descriptions, placeholder values, and validation rules.
### Inputs
- Name: The identifier for the input
- Value: The actual input value
- Title: Display title for the input
- Description: Detailed explanation of the input
- Placeholder Values: Suggested values for the input
- Limit to Placeholder Values: Restricts input to suggested values only
- Advanced: Controls visibility in advanced settings
- Secret: Handles sensitive information
### Outputs
- Result: The processed input value
### Possible use case
Creating a user form where specific types of input are needed, such as a configuration interface.
## Agent Output
### What it is
A block for formatting and displaying workflow results.
### What it does
Processes and presents output values with optional formatting.
### How it works
Takes input values, applies optional formatting, and prepares them for display or further processing.
### Inputs
- Value: The data to be output
- Name: Identifier for the output
- Title: Display title
- Description: Detailed explanation
- Format: Template for formatting the output
- Advanced: Controls visibility in advanced settings
- Secret: Handles sensitive information
### Outputs
- Output: The formatted or raw output value
### Possible use case
Displaying results of a data processing workflow with custom formatting, such as creating a summary report.
[Documentation continues with remaining blocks...]

View File

@@ -1,39 +0,0 @@
## Block Installation
### What it is
A specialized development tool that enables the verification and installation of new blocks into the system.
### What it does
This block acts as an installation manager that can:
- Accept new block code as input
- Verify the code's structure and validity
- Install the block into the system if all checks pass
- Test the newly installed block to ensure it works correctly
- Provide feedback about the installation process
### How it works
The block follows a systematic process to safely install new blocks:
1. Receives the block code as text input
2. Analyzes the code to identify the block class name and unique identifier
3. Creates a new file in the appropriate system directory
4. Performs validation and testing of the new block
5. Either confirms successful installation or removes the file if there are any issues
### Inputs
- Code: The complete Python code for the new block that needs to be installed. This should be provided as a text string containing all necessary block implementation details.
### Outputs
- Success: A confirmation message indicating that the block was successfully installed and tested
- Error: A detailed error message if the installation fails, including both the problematic code and the specific error description
### Possible use case
A developer creating a new custom block for the system could use this block to:
1. Write their new block implementation
2. Submit the code through this installation block
3. Receive immediate feedback about whether the block was properly structured and functioning
4. Have the new block automatically integrated into the system if all checks pass
### Important Note
This block is intended for development purposes only, as it involves executing code on the server. It comes disabled by default as a security measure and should only be enabled in controlled development environments.

View File

@@ -1,48 +0,0 @@
## Code Execution Block
### What it is
A secure sandbox environment that allows users to execute code in various programming languages with internet access.
### What it does
This block provides a safe way to run code snippets in different programming languages (Python, JavaScript, Bash, R, and Java) within an isolated environment. It can also set up the environment with specific requirements before running the code.
### How it works
The block creates an isolated sandbox environment using E2B's infrastructure. It first runs any setup commands (if provided) to prepare the environment, then executes the provided code in the specified programming language. The sandbox includes internet access and pre-installed package managers like pip and npm.
### Inputs
- Credentials: Your E2B API key required to access the sandbox environment
- Setup Commands: Optional shell commands to prepare the environment (e.g., installing packages or downloading files)
- Code: The actual code you want to execute
- Language: Choice of programming language (Python, JavaScript, Bash, R, or Java)
- Timeout: Maximum time in seconds allowed for code execution (default: 300 seconds)
- Template ID: Optional E2B sandbox template ID for customized environments with specific CPU and memory configurations
### Outputs
- Response: The main output or return value from the code execution
- Standard Output Logs: Any text printed to standard output during execution
- Standard Error Logs: Any error messages or warnings printed during execution
- Error: Detailed error message if the code execution fails
### Possible use cases
1. Testing code snippets in different programming languages without setting up local development environments
2. Running data analysis scripts that require specific packages or dependencies
3. Teaching programming by providing a safe environment for students to experiment
4. Automating code testing with different environment configurations
5. Running resource-intensive computations in an isolated environment
6. Executing potentially risky code safely without compromising local system security
### Additional Notes
- The sandbox environment is completely isolated, making it safe to run untrusted code
- Internet access allows for downloading packages and accessing online resources
- Pre-installed package managers (pip and npm) facilitate easy dependency management
- The environment can be customized using setup commands or template IDs
- All executions are automatically terminated after the specified timeout period
- The system supports file operations, though currently, file upload and download features are in development
### Best Practices
1. Always set appropriate timeout values based on your code's complexity
2. Use setup commands to ensure all required dependencies are installed
3. Consider using template IDs for consistently configured environments
4. Monitor standard output and error logs for debugging purposes
5. Handle potential errors by checking the error output field

View File

@@ -1,48 +0,0 @@
## Code Extraction
### What it is
A specialized tool that identifies and extracts code segments written in different programming languages from within a text document.
### What it does
This block scans through text content and automatically identifies, separates, and organizes code snippets based on their programming language. It can recognize multiple programming languages and maintains the original text without code blocks.
### How it works
The block searches for code sections that are enclosed in special markers (typically triple backticks with language indicators) within the input text. It then:
1. Identifies the programming language of each code section
2. Extracts the code while preserving its formatting
3. Organizes the extracted code by language
4. Preserves the remaining text without code blocks
5. Supports multiple code blocks of the same language
### Inputs
- Text: The source text containing one or more code blocks. This could be an AI response, documentation, or any text that includes code examples marked with language indicators.
### Outputs
- HTML: Extracted HTML markup code
- CSS: Extracted styling code
- JavaScript: Extracted JavaScript code
- Python: Extracted Python code
- SQL: Extracted database queries
- Java: Extracted Java code
- C++: Extracted C++ code
- C#: Extracted C# code
- JSON: Extracted JSON data structures
- Bash: Extracted shell commands and scripts
- PHP: Extracted PHP code
- Ruby: Extracted Ruby code
- YAML: Extracted YAML configurations
- Markdown: Extracted Markdown content
- TypeScript: Extracted TypeScript code
- XML: Extracted XML markup
- Remaining Text: The original text with all code blocks removed
### Possible use cases
1. Processing AI-generated responses that contain multiple code examples
2. Extracting code samples from technical documentation
3. Separating code from explanatory text in tutorial content
4. Organizing mixed-language code snippets from chat conversations
5. Preparing content for syntax highlighting in documentation systems
6. Converting mixed content into structured documentation with separated code sections
This block is particularly useful for developers and content creators who need to process text containing multiple code examples and want to organize them by programming language while maintaining the original explanatory text.

View File

@@ -1,40 +0,0 @@
## Condition Block
### What it is
A logical comparison tool that evaluates two values based on a specified operator and produces different outputs depending on whether the condition is true or false.
### What it does
This block compares two values using standard comparison operators (equal to, greater than, less than, etc.) and outputs both the result of the comparison and corresponding values based on whether the condition was met.
### How it works
1. Takes two values and a comparison operator as input
2. Converts string numbers to actual numbers when possible
3. Performs the specified comparison between the values
4. Outputs whether the condition was true or false
5. Provides different output values based on the comparison result
### Inputs
- Value 1: The first value to compare (can be a number, text, or boolean)
- Operator: The comparison operator to use (equals, not equals, greater than, less than, greater than or equal to, less than or equal to)
- Value 2: The second value to compare (can be a number, text, or boolean)
- Yes Value: (Optional) A specific value to output if the condition is true. If not provided, Value 1 will be used
- No Value: (Optional) A specific value to output if the condition is false. If not provided, Value 2 will be used
### Outputs
- Result: A boolean (true/false) indicating whether the condition was met
- Yes Output: The value returned when the condition is true (either Yes Value or Value 1)
- No Output: The value returned when the condition is false (either No Value or Value 2)
### Possible use cases
1. Age verification system: Compare a user's age against a minimum requirement and output different messages
2. Price comparison: Check if a product's price is below a certain threshold and display different labels
3. Temperature control: Compare current temperature with desired temperature and output different actions
4. Score evaluation: Compare test scores against passing grades and output different feedback messages
5. Inventory management: Compare stock levels against minimum threshold and output different alert messages
For example, you could use this block to:
- Compare if a temperature (Value 1: 75) is greater than (Operator) a threshold (Value 2: 70)
- Set Yes Value to "Turn off AC" and No Value to "Keep AC running"
- The block would output "Turn off AC" if the temperature is above 70, and "Keep AC running" if it's below 70

View File

@@ -1,50 +0,0 @@
# Discord Blocks Documentation
## Read Discord Messages
### What it is
A block that monitors and retrieves messages from a Discord channel using a bot token.
### What it does
This block connects to Discord and listens for new messages in channels where the bot is present. It can capture text messages and handle file attachments (specifically .txt and .py files).
### How it works
The block connects to Discord using a bot token, monitors messages in real-time, and captures the message content, channel name, and username of the sender. When it receives a message with a text file attachment, it also downloads and includes the file's content in the output.
### Inputs
- Discord Credentials: A Discord bot token needed to authenticate and connect to Discord servers
### Outputs
- Message Content: The actual text content of the received message, including any attached file contents
- Channel Name: The name of the Discord channel where the message was received
- Username: The name of the user who sent the message
### Possible use case
Monitoring a support channel in Discord to automatically log customer inquiries or creating an archive of discussions in a community channel.
## Send Discord Message
### What it is
A block that sends messages to specific Discord channels using a bot token.
### What it does
This block enables automated message sending to designated Discord channels, handling long messages by automatically splitting them into appropriate sizes.
### How it works
The block connects to Discord using the provided bot token, locates the specified channel, and sends the message. If the message is longer than Discord's 2000-character limit, it automatically splits the message into smaller chunks and sends them sequentially.
### Inputs
- Discord Credentials: A Discord bot token needed to authenticate and connect to Discord servers
- Message Content: The text content you want to send to Discord
- Channel Name: The name of the Discord channel where you want to send the message
### Outputs
- Status: The result of the operation (e.g., "Message sent" or error messages if something goes wrong)
### Possible use case
Automatically sending notifications to a Discord channel when certain events occur, such as system alerts, user notifications, or automated reports.
---
**Note**: Both blocks require valid Discord bot credentials with appropriate permissions to function correctly. The bot needs to be added to the Discord server where it will operate.

View File

@@ -1,35 +0,0 @@
## Send Email Block
### What it is
A communication block that allows you to send emails using SMTP (email server) credentials.
### What it does
This block sends emails to specified recipients with customizable subject lines and message content using provided email server credentials.
### How it works
The block connects to an email server (like Gmail) using the provided credentials, composes an email with the specified details (recipient, subject, and body), and sends it through the server. It then reports back whether the email was sent successfully or if there were any errors.
### Inputs
- To Email: The recipient's email address where the message will be sent
- Subject: The title or subject line of the email
- Body: The main content or message of the email
- Email Credentials:
- SMTP Server: The email server address (default is smtp.gmail.com)
- SMTP Port: The communication port number for the email server (default is 25)
- SMTP Username: Your email address or username for authentication
- SMTP Password: Your email account password or application-specific password
### Outputs
- Status: A message indicating whether the email was sent successfully
- Error: A message describing what went wrong if the email sending failed
### Possible use case
This block could be used in various scenarios, such as:
- Sending automated notifications to team members when certain events occur
- Delivering system alerts to administrators
- Sending welcome emails to new users
- Dispatching periodic reports or updates to stakeholders
- Sending confirmation emails after user actions in an application
For example, an e-commerce system could use this block to automatically send order confirmations to customers after they make a purchase, including order details in the email body and using a standardized subject line format.

View File

@@ -1,31 +0,0 @@
## Google Maps Search
### What it is
A specialized search tool that connects with Google Maps to find and retrieve information about local businesses and places.
### What it does
This block searches for places and businesses using the Google Maps platform, providing detailed information about each location including its name, address, phone number, rating, number of reviews, and website.
### How it works
The block takes a search query and parameters from the user, connects to Google Maps using an API key, and searches for matching locations within the specified radius. For each found location, it gathers detailed information and returns it in an organized format. The search continues until it reaches either the maximum number of requested results or exhausts all available matches.
### Inputs
- Google Maps API Key: Authentication credentials required to access the Google Maps service
- Search Query: Text describing what you're looking for (e.g., "restaurants in New York")
- Search Radius: The distance (in meters) from a central point to search within, up to 50,000 meters
- Maximum Results: The maximum number of places you want to receive, up to 60 results
### Outputs
- Place: Detailed information about each found location, including:
- Name: The business or location name
- Address: Complete formatted address
- Phone: Contact phone number
- Rating: Average rating from Google Maps reviews
- Reviews: Total number of reviews
- Website: URL of the business website
- Error: A message explaining what went wrong if the search fails
### Possible use case
A restaurant discovery application that helps users find dining options in their area. The application could use this block to search for "Italian restaurants" within a 5-kilometer radius of the user's location, returning details about each restaurant including ratings, address, and contact information. This would help users make informed decisions about where to eat based on location, popularity, and reviews.

View File

@@ -1,35 +0,0 @@
## Read CSV
### What it is
A data processing tool that reads and interprets CSV (Comma-Separated Values) files, converting them into a more usable format.
### What it does
This block takes CSV file contents and transforms them into structured data, making it easier to work with spreadsheet-like information. It can process the data row by row and also provide all the data at once.
### How it works
The block reads the provided CSV content, processes it according to the specified settings (like delimiters and headers), and converts each row into a dictionary format where column names (or numbers) are paired with their corresponding values. It can either output the data one row at a time or provide all rows at once.
### Inputs
- Contents: The actual content of the CSV file you want to process
- Delimiter: The character that separates values in your CSV file (default is comma ",")
- Quote Character: The character used to enclose special values (default is double quote """)
- Escape Character: The character used to handle special characters in the file (default is backslash "\")
- Has Header: Whether your CSV file includes a header row with column names (default is Yes)
- Skip Rows: Number of rows to skip from the beginning of the file (default is 0)
- Strip: Whether to remove extra spaces from the values (default is Yes)
- Skip Columns: List of column names to exclude from the output (default is none)
### Outputs
- Row: Individual rows of data, where each row is converted into a dictionary with column names (or numbers) as keys and cell values as values
- All Data: The complete dataset as a list of dictionaries, where each dictionary represents one row of the CSV file
### Possible use case
A data analyst needs to process a large customer database exported as a CSV file. They want to:
1. Remove unnecessary whitespace from all entries
2. Skip the first two rows containing metadata
3. Exclude sensitive columns like "social_security_number"
4. Process the data both row by row for immediate analysis and as a complete dataset for backup
Using this Read CSV block, they can easily configure these requirements and receive the data in a clean, structured format ready for further analysis or processing.

View File

@@ -1,28 +0,0 @@
## Text Decoder
### What it is
A utility block that converts text containing special escape sequences into their proper readable format.
### What it does
This block takes text that contains special characters written in their "escaped" form (like \n for new lines or \" for quotation marks) and converts them into their actual, readable representations. It's like translating computer-friendly text into human-friendly text.
### How it works
The block processes the input text by identifying special character sequences (escape sequences) and replacing them with their actual characters. For example, when it sees '\n', it creates an actual line break in the text, and when it sees '\"', it creates an actual quotation mark.
### Inputs
- Text: The input text that contains escaped characters. This could be any text string that has special characters written in their escaped form (like \n for new lines or \" for quote marks).
### Outputs
- Decoded Text: The processed text where all escape sequences have been converted to their actual characters. The output is more readable and properly formatted text with actual line breaks, quotation marks, and other special characters.
### Possible use case
A content editor receives a text file from a technical system that contains escaped characters. Instead of manually replacing all these special characters, they can use this Text Decoder block to automatically convert the text into a properly formatted version. For example:
Input: "Hello\nWorld!\nThis is a \"quoted\" string."
Would become:
Hello
World!
This is a "quoted" string.
This is particularly useful when working with text exported from programming environments or when processing system-generated text that needs to be made human-readable.

View File

@@ -1,39 +0,0 @@
## Word Character Count
### What it is
A text analysis tool that helps users count both words and characters in any given text.
### What it does
This block processes input text and provides two key measurements:
- The total number of words in the text
- The total number of characters in the text
### How it works
The block takes your input text and performs two simple calculations:
1. It splits the text into individual words and counts them
2. It counts every character in the text, including spaces and punctuation
If any errors occur during processing, it will provide an error message explaining what went wrong.
### Inputs
- Text: The text you want to analyze. This can be anything from a single word to multiple paragraphs. Simply enter your text, and the block will process it.
### Outputs
- Word Count: The total number of words found in your text
- Character Count: The total number of characters (including spaces and punctuation) in your text
- Error: If something goes wrong during processing, this will contain a message explaining the error
### Possible use cases
- Content writers checking article length
- Students verifying if their essay meets word count requirements
- Social media managers ensuring posts fit within character limits
- Editors tracking document length during review process
- Teachers analyzing student submissions for length requirements
- Data entry specialists verifying text field constraints
### Example
If you input the text "Hello, how are you?", the block will tell you that it contains:
- 4 words
- 19 characters (including spaces and punctuation)
This block belongs to the TEXT category, making it perfect for any text analysis tasks that require basic counting operations.