DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Please enter at least three characters to search
Refcards Trend Reports
Events Video Library
Refcards
Trend Reports

Events

View Events Video Library

Zones

Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks

Because the DevOps movement has redefined engineering responsibilities, SREs now have to become stewards of observability strategy.

Apache Cassandra combines the benefits of major NoSQL databases to support data management needs not covered by traditional RDBMS vendors.

The software you build is only as secure as the code that powers it. Learn how malicious code creeps into your software supply chain.

Generative AI has transformed nearly every industry. How can you leverage GenAI to improve your productivity and efficiency?

Related

  • Model-Driven Development and Testing
  • Turbocharge Innovation With Automated API Generation: Leveraging Automated API Generation for a Competitive Advantage
  • Build a Simple REST API Using Python Flask and SQLite (With Tests)
  • Building AI-Driven Intelligent Applications: A Hands-On Development Guide for Integrating GenAI Into Your Applications

Trending

  • Data Lake vs. Warehouse vs. Lakehouse vs. Mart: Choosing the Right Architecture for Your Business
  • Intro to RAG: Foundations of Retrieval Augmented Generation, Part 1
  • Operational Principles, Architecture, Benefits, and Limitations of Artificial Intelligence Large Language Models
  • Endpoint Security Controls: Designing a Secure Endpoint Architecture, Part 2
  1. DZone
  2. Data Engineering
  3. AI/ML
  4. Idea to Running: One Minute

Idea to Running: One Minute

Natural Language prompts create an instant running system — app, API, and database — leveraging GenAI with declarative business rules. Free, in the cloud.

By 
Val Huber user avatar
Val Huber
DZone Core CORE ·
Dec. 20, 24 · Tutorial
Likes (4)
Comment
Save
Tweet
Share
4.3K Views

Join the DZone community and get the full member experience.

Join For Free

Getting things right requires iteration. And we all know that requires running screens — they engage users far more than documents or wireframes.

Framework complexity leads to this unpleasant situation: months of effort to get running screens, only then to uncover a misunderstanding. Ouch. Low code can help, but it still takes time to design databases and paint screens.

We’ve all been here before.
We’ve all been here before.

Idea to Running: 1 Minute

The marriage of GenAI technology with Logic Automation means you can now describe a system with a prompt:

Idea to Running System: 1 Minute
Idea to Running System: 1 Minute

And get a complete running system in one minute  —  a database with test data, working screens, and an API. Even a fun little landing page:

Landing Page from Prompt
Landing Page from Prompt

Admin App
Admin App

Admin App - Order Page
Admin App - Order Page

We are moving veryrapidly.

Logic Iteration  —  Natural Language: 1 Minute

Now, our team can review the screens and identify changes. These might be structural (“customers have multiple addresses”) or logic (“it needs to check the credit limit”).

So, we define “check credit” logic using declarative rules expressed in Natural Language and iterate:

Natural Language Logic (instead of 200 lines of code)
Natural Language Logic (instead of 200 lines of code)

And now that’s running, also in about a minute. Suddenly, iteration cycles that used to take months are happening in minutes. The time wasted in misunderstandings  —  they still happen, of course  —  is inconsequential.

We are moving very rapidly, iterating in the right direction.

The logic above, while stated in Natural Language, is immensely powerful. It’s automatically ordered (simplifying iterations) and is automatically reused over all the relevant use cases. So, perhaps conceived for placing an order, our logic also understands how to process selecting a different product:

Lookup Different Product - logic fires automatically to Check Credit
Lookup Different Product - logic fires automatically to Check Credit

Rules reprice the Order, but it exceeds the Credit Limit
Rules reprice the Order, but it exceeds the Credit Limit

The five lines of logic above apply to about a dozen use cases. Without logic automation, this would be about 200 lines of code.

That’s a 40X reduction, for the backend half of your system

So, we’ve applied automation to all the elements of our architecture: the database, the screens, the API, and the logic.

Simplicity Enables Your Organization

The simplicity of GenAI  —  it’s just Natural Language  —  means we’re no longer limited to rocket scientists. Anyone can help get the requirements right.

Organizational velocity: more people, moving faster, in the right direction.

Dev Friendly  —  Model-Based, Standard Tools

We are not claiming, by any means, that GenAI can automate complete enterprise-class systems. You will want custom front ends, integration with business partners and internal systems, etc. This means developers absolutely need to get involved.

With… what? All we’ve provided is a few prompts…

As you might have expected, a project has been created. It’s a standard Python project you can download and extend in your favorite IDE, completely configured and ready to run.

Developers are cautious about generated “Franken-code”, for good reason. It can be monstrously difficult to understand, debug and extend.

So, GenAI-Logic creates models, not code.

The initial project creation included an API with OpenAPI doc:

Automatic JSON:API - unblocks Custom App Dev, App Integration
Automatic JSON:API - unblocks Custom App Dev, App Integration

Because it’s a model, the API is four lines:

Python as a DSL (Domain Systems Language): Executable API Model
Python as a DSL (Domain Systems Language): Executable API Model

And here is the logic - five Python rules. It’s still at the same high level of abstraction, but you can now use code editors, debuggers, and source control:

Logic Model - Logic is Automatically Invoked, Re-used, Ordered and Optimized
Logic Model - Logic is Automatically Invoked, Re-used, Ordered and Optimized

Note the automation process did not just generate “raw” Python code. It would be around 200 lines. And we tried it: basic GenAI creates code that is poorly optimized, and wrong (it missed the corner case above). FrankenCode, at its worst.

The ideal approach marries GenAI with Logic Automation engines, to execute the models for UI, APIs and Logic.
Models - Not FrankenCode
Models - Not FrankenCode

You can also provide the code as required. You have access to all the underlying standard tools (your IDE and its debugger, GitHub, etc.) and frameworks. For example, you can add custom endpoints, such as APIs for B2B partners:

Custom Endpoint - a dozen lines of code (re-uses shared logic)
Custom Endpoint - a dozen lines of code (re-uses shared logic)

Logic = Rules + Python. For example, to publish Kafka messages, define an event and a Python handler:

Rules Are Extensible With Events - Send Order to Kafka
Rules Are Extensible With Events - Send Order to Kafka

And most importantly, your automated API is available:

  • UI developers can use it with AI-dev tools, low code tools, or traditional frameworks. The logic has already been factored out and shared so they can focus on the presentation. No more business logic in buttons  —  that’s a bug since it prevents sharing logic between apps and services.
  • App integration can use it to read and write data, subject to security. Since the JSON:API enables callers to select fields and join exactly what they need, custom API dev is dramatically reduced.

Standards-Based Architecture and Deployment

Runtime Stack - Automatic Rule Execution
Runtime Stack - Automatic Rule Execution


Containers are stateless for scalability.

Deploy them anywhere. No fees apply.

And There You Have It

The combination of GenAI and Logic Automation means business users and developers can collaborate to create modern API-based systems that are far faster and far easier than ever before. Including declarative business logic:

  • Create and iterate with Natural Language prompts.
  • It’s automation. Developers can live with models, not code, familiar tools for customization and deployment.
  • Integrate with partners and existing systems.


You can try this out for free on your browser — visit https://www.genai-logic.com/. It’s all open source.

API Business logic Python (language) low code generative AI

Opinions expressed by DZone contributors are their own.

Related

  • Model-Driven Development and Testing
  • Turbocharge Innovation With Automated API Generation: Leveraging Automated API Generation for a Competitive Advantage
  • Build a Simple REST API Using Python Flask and SQLite (With Tests)
  • Building AI-Driven Intelligent Applications: A Hands-On Development Guide for Integrating GenAI Into Your Applications

Partner Resources

×

Comments
Oops! Something Went Wrong

The likes didn't load as expected. Please refresh the page and try again.

ABOUT US

  • About DZone
  • Support and feedback
  • Community research
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Core Program
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 3343 Perimeter Hill Drive
  • Suite 100
  • Nashville, TN 37211
  • support@dzone.com

Let's be friends:

Likes
There are no likes...yet! 👀
Be the first to like this post!
It looks like you're not logged in.
Sign in to see who liked this post!