Back to Guidelines
Design

Managing Logic Building Blocks

Understanding Logic Building Blocks

Logic building blocks are the intelligent components that power your Maniana applications. Unlike traditional coding where you write complex functions and algorithms, Maniana allows you to create, modify, and manage application logic through simple natural language conversations with our AI.

What Are Logic Building Blocks?

Logic building blocks are modular pieces of functionality that handle specific tasks in your application. They can be:

  • Data Processing Logic - Handle form submissions, validate input, and process user data
  • Business Rules - Implement conditional logic, calculations, and decision-making processes
  • API Integrations - Connect to external services and handle data exchange
  • Database Operations - Create, read, update, and delete data operations
  • Workflow Automation - Chain together multiple actions and processes

Editing Logic with Natural Language

The revolutionary aspect of Maniana is that you can create and modify these logic blocks simply by describing what you want in plain English. No coding knowledge required!

Creating New Logic Blocks

Simply tell Maniana what you want your application to do:

Example: "When a user submits the contact form, validate their email address, save their message to the database, and send them a confirmation email."

Maniana's AI will automatically create the necessary logic blocks to handle this workflow, including form validation, database operations, and email functionality.

Modifying Existing Logic

Need to change how something works? Just describe the modification:

Logic building block editor: Navigate to the logic building block editor, click on the logic block you want to modify, update the logic description and save. That's it! Maniana will use the new logic description on application execution.

Example: "Update the user registration logic to also check if the username is unique and require phone number verification."

The AI will intelligently modify the existing logic blocks while preserving the functionality you want to keep.

Common Logic Patterns

Data queries

Specify what data should feed a visual component:

"Select the last 100 users"

Advanced Logic Management

Chaining Logic Blocks

Create complex workflows by describing the sequence of actions:

Example: E-commerce Order Process

"When a customer places an order:

  1. Validate the payment information
  2. Check product availability
  3. Calculate shipping costs
  4. Process the payment
  5. Update inventory
  6. Send confirmation email to customer
  7. Notify the warehouse team

If any step fails, roll back the transaction and notify the customer."

Error Handling

Describe how your application should handle problems:

Example: "If the payment gateway is down, show a friendly error message and offer alternative payment methods."

Best Practices for Logic Management

💡 Pro Tips

  • Be Specific: The more detailed your description, the more accurate the logic implementation
  • Think User Journey: Describe logic from the user's perspective
  • Consider Edge Cases: Mention what should happen when things go wrong
  • Use Examples: Provide specific scenarios to illustrate complex logic
  • Test Iteratively: Start with basic logic and refine through conversation

Debugging and Troubleshooting

When logic isn't working as expected, simply describe the issue:

  • "The login form isn't validating email addresses properly"
  • "Users are able to submit empty forms, but they shouldn't be"
  • "The search function is too slow with large datasets"
  • "Email notifications aren't being sent after user registration"

Maniana's AI will analyze the issue and suggest or implement fixes automatically.

Getting Started

Ready to start building logic for your application? Here's how to begin:

  1. Identify Core Functions: What does your app need to do?
  2. Start Simple: Begin with basic user interactions
  3. Describe the Flow: Explain step-by-step what should happen
  4. Test and Refine: Try the logic and adjust through conversation
  5. Add Complexity: Layer on advanced features as needed

Remember, with Maniana, building complex application logic is as simple as having a conversation. The AI handles the technical implementation while you focus on defining the behavior and user experience you want to create.