CRAFT™️ Experiment: Rethinking A.I. Variables (1 of 5): Recap of Last Week

THE CRAFT™️ EXPERIMENT :: WEEK 4 :: POST 1

A Recap of Last Week’s Work: A Detailed Exploration of the CRAFT Framework's Data Types

The CRAFT framework (Configurable Reusable AI Framework Technology) introduces a sophisticated comment system that revolutionizes human-AI communication by applying programming principles to conversational AI. Here's a comprehensive explanation of this innovative approach and its benefits.

Each Craft Project currently contains 3 text files which are uploaded to the chat before it begins:

1. CFT-PROJ-0001_AI-CHAT-HISTORY-v25d1.txt

  • Defines the purpose of the “AI chat history” file: maintaining session-to-session continuity.

  • Outlines a HANDOFF_SNAPSHOT format (with fields like SESSION_SUMMARY, STATE, DECISIONS, QUESTIONS, NEXT_STEPS) and length guidelines for each section.

  • Includes revised end-of-session prompt templates to automatically generate those snapshots at 500–750 words.

2. CFT-PROJ-0001_BUILDINGCRAFT-v25d1.txt

  • Serves as the active “working code” file for this project’s CRAFT implementation.

  • Lays out the core sections you’ll load at the start of each chat:

    1. PROJECT_META – IDs and versioning

    2. PROJECT_VARIABLES – constants/configuration

    3. PROJECT_FUNCTIONS – reusable operations

    4. PROJECT_OBJECTS – class and object templates

    5. PROJECT_INSTRUCTIONS – global rules and execution guidelines

3. CFT-FWK-SPEC-v25d1.txt

  • The overarching CRAFT Framework Specification (Configurable Reusable AI Framework Technology).

  • Details naming conventions and the role of each project file.

  • (Placeholder sections for VARIABLES, FUNCTIONS, etc., to be defined as the framework evolves.)

Summary

  • You have a three-file structure: a spec (“how things should look”), a build file (“the code we load”), and a history file (“what we’ve done so far”).

  • Each file is versioned and timestamped (05-04-2025 v25a1).

  • Together, they set up a standardized, repeatable process for carrying project context between AI chat sessions.

CRAFT Framework: Enhancing AI Interactions Through Custom Data Types

The CRAFT (Configurable Reusable AI Framework Technology) framework introduces a robust set of custom data types designed to transform casual AI interactions into structured, efficient workflows. These data types adapt principles of object-oriented programming to AI conversations, creating a more intuitive interaction paradigm. Let's explore these specialized data types and how they benefit entrepreneurs and AI enthusiasts.

Why CRAFT Data Types Matter

Unlike standard programming data types, CRAFT data types are intuitive concepts that any AI can understand without explicit definitions. They create structure while enhancing flexibility, allowing for more precise communication with AI systems.

CRAFT Framework Data Types: A Detailed Overview

The CRAFT framework introduces specialized data types that streamline AI interactions and bring programming-like structure to natural language conversations. These data types are designed with specific purposes in mind, catering to various aspects of AI interaction.

Fundamental Communication Types

Content Organization Types

  • TLDRSummary: Creates standardized content summaries without repetitive prompting.

    • Example: Summary("Long meeting transcript...", max_length=100)

    • Benefit: Ensures consistent formatting for condensed versions of longer content.

  • RichContent: Represents formatted text with links and media without requiring HTML/Markdown boilerplate.

    • Example: RichContent("Check this **important** [resource](https://example.com)")

    • Benefit: Simplifies the creation of formatted content in AI interactions.

  • MediaReference: Provides standardized references to images, audio, or video.

    • Example: MediaReference("image", url="https://example.com/img.jpg", alt="Product photo")

    • Benefit: Ensures consistent handling of media across different AI platforms.

Communication Enhancement Types

  • Email: Simplifies a common business task with natural parameters.

    • Example: Email(subject="Meeting Follow-up", recipient="team", tone="professional")

    • Benefit: Streamlines email creation by specifying key components in a structured format.

  • AITone: Specifies writing style with simple parameters.

    • Example: Tone("friendly", "professional", "concise")

    • Benefit: One of the most common adjustments beginners make - now simplified.

  • TargetAudience: Describes the intended readers to help AI tailor content appropriately.

    • Example: Audience("marketing professionals", knowledge_level="intermediate")

    • Benefit: Ensures content is consistently pitched at the right level without complex instructions.

  • WordLength: Specifies content size without technical parameters.

    • Example: Length("paragraph", count=3) or Length("words", count=200)

    • Benefit: Guarantees consistent output format with intuitive parameters.

Business Intelligence Types

Metrics and Analysis

  • Metric: Represents a named value with unit and context.

    • Example: Metric("conversion_rate", 3.2, unit="percent", trend="increasing")

    • Benefit: Standardizes the representation of business KPIs.

  • TimeSeries: Represents a temporal sequence of data points.

    • Example: TimeSeries([{date: "2025-04-01", value: 120}, ...], metric="sales")

    • Benefit: Simplifies trend analysis and forecasting in business contexts.

  • DataValidator: Defines rules for validating input.

    • Example: DataValidator(type="email", required=true, format="corporate")

    • Benefit: Ensures data quality without requiring complex validation code.

  • DataTransformation: Specifies data conversion processes.

    • Example: Transformation("csv_to_table", options={"headers": true})

    • Benefit: Standardizes data processing steps across AI interactions.

Content Production Types

  • SocialPost: Formats content specifically for social media platforms.

    • Example: SocialPost(platform="LinkedIn", topic="industry trend", hashtags=3)

    • Benefit: Handles platform-specific considerations automatically.

  • HowTo: Provides step-by-step instructions for processes.

    • Example: HowTo("create a budget spreadsheet", detail_level="medium")

    • Benefit: Ensures AI provides actionable, sequential steps for any process.

  • Definition: Offers simple meanings of terms within the context of CRAFT conversations.

    • Example: Definition("prompt engineering", context="AI")

    • Benefit: Provides quick access to clear explanations without overwhelming detail.

  • Comparison: Evaluates alternatives across specified dimensions.

    • Example: Comparison("electric vs. gas vehicles", aspects=["cost", "environment", "convenience"])

    • Benefit: Structures comparative analysis in a format AI can consistently understand.

Advanced Workflow Types

AI Interaction Control

  • AIModelConfig: Sets configuration parameters for AI model calls.

    • Benefit: Provides fine-grained control over AI behavior for specific tasks.

  • AIInstruction: Gives clear directions for the AI to follow.

    • Example: Instruction("Write a professional email to a client about a project delay")

    • Benefit: Makes it explicit when users want the AI to create something specific.

  • AIWorkflow: Bundles sequences of AI actions into named flows.

    • Example: AIWorkflow(name="OnboardCustomer", steps=["collect_info","verify_email","send_welcome"])

    • Benefit: Allows execution of complex processes with simple commands.

  • AIRecipe: Represents successful, ready-to-use prompt structures with placeholders.

    • Benefit: Helps prompt crafters follow proven patterns without reinventing prompts.

  • AIPersona: Defines specific AI roles, personalities, or expertise levels.

    • Example: Persona("Critical Editor", focus=["Clarity", "Conciseness"], constraints=["Avoid jargon"])

    • Benefit: Provides more granular control over AI behavior for specific tasks.

Development-Oriented Types

  • URL: Represents URL structure with essential components.

    • Benefit: Ensures consistent handling of web addresses.

  • ColorPalette: Defines color schemes for design consistency.

    • Example: ColorPalette("gray #DCDCDC, orange #FF4E00, black #000000")

    • Benefit: Maintains design consistency across generated content.

  • FileName: Represents file name structure with essential components.

    • Benefit: Standardizes file naming conventions within the CRAFT ecosystem.

  • CodeSnippet: Clearly separates code from text for analysis or modification.

    • Example: CodeSnippet(language="python", content="def foo(x): return x*2")

    • Benefit: Improves code handling in AI interactions without requiring markdown formatting.

Enterprise & Workflow Types

Structure and Organization

  • Workflow: Represents defined sequences of steps involving multiple CRAFT data types.

    • Example: Workflow("NewBlogPost", steps=[Instruction("Research keywords"), ActionTemplate("GenerateOutline")])

    • Benefit: Makes complex tasks repeatable and manageable within the chat context.

  • AIDecisionPoint: Creates conditional branches within workflows or conversations.

    • Example: DecisionPoint(trigger=Metric("CustomerSatisfaction"), condition="value < 0.7", if_true=ActionTemplate("EscalateToManager"))

    • Benefit: Introduces basic logic into CRAFT interactions without complex code.

  • ConstraintSet: Provides named, reusable collections of rules or limitations.

    • Example: ConstraintSet("BrandVoiceGuidelines", rules=["Tone: professional_yet_approachable"])

    • Benefit: Improves consistency by standardizing complex requirements across multiple prompts.

Documentation and Knowledge Management

  • KnowledgeGraphNode: Represents distinct entities within larger knowledge structures.

    • Example: KnowledgeGraphNode(id="proj_alpha", type="Project", properties={"status": "Ongoing"})

    • Benefit: Facilitates building structured knowledge within the AI's context.

  • DefinedRelationship: Explicitly defines connections between entities or data points.

    • Example: Relationship(subject=Entity("Company A"), predicate="partnership_with", object=Entity("Company B"))

    • Benefit: Improves the AI's ability to understand context and draw inferences.

  • VersionTag: Associates labels with specific states of CRAFT objects or content.

    • Example: VersionTag(target_id="business_plan_doc", tag="v2.1-FinalReview")

    • Benefit: Helps track changes and manage iterations within CRAFT projects.

Business Logic and Compliance

  • BusinessLogic: Encodes business rules declaratively.

    • Example: BusinessLogic(name="DiscountEligibility", condition="user.loyalty_years > 1", action="apply_discount(10%)")

    • Benefit: Allows AI to generate or audit workflow engines without complex instructions.

  • ComplianceRule: Makes regulatory constraints explicit.

    • Example: ComplianceRule(regulation="GDPR", requirement="user_consent_required", action="log_consent()")

    • Benefit: Helps AI surface potential compliance issues or generate documentation.

  • OutputSchema: Specifies desired structure and format for AI outputs.

    • Example: OutputSchema("CompetitorReport", fields={"competitor_name": "string", "estimated_revenue": Metric(unit="USD")})

    • Benefit: Ensures predictable, structured output suitable for further processing.

Key Benefits for Entrepreneurs

1. Enhanced Communication Efficiency

CRAFT data types streamline communication with AI systems by providing clear, structured templates for common tasks. Instead of writing lengthy prompts explaining what you want, you can use predefined data types like Email, SocialPost, or HowTo to quickly communicate your needs.

2. Consistency Across Projects

By using standardized data types, entrepreneurs ensure consistent outputs across different AI interactions and projects. Whether you're generating content, analyzing data, or creating workflows, CRAFT provides a unified approach that maintains quality and format consistency.

3. Reduced Learning Curve

The framework uses familiar programming concepts but adapts them to natural language interaction, making them accessible to both technical and non-technical users. This reduces the learning curve for effective AI utilization.

4. Business Process Integration

With specialized types like Metric, BusinessLogic, and ComplianceRule, entrepreneurs can integrate AI more seamlessly into existing business processes and ensure outputs meet regulatory requirements.

5. Knowledge Management

Data types like KnowledgeGraphNode, DefinedRelationship, and VersionTag support building structured knowledge bases that evolve over time, embodying the CRAFT principle of "Cumulative Intelligence."

Real-World Applications

CRAFT data types enable entrepreneurs to:

  • Create structured content workflows (using Workflow and AIDecisionPoint)

  • Maintain brand consistency (with ConstraintSet and AITone)

  • Streamline data analysis (through Metric and TimeSeries)

  • Ensure compliance (via ComplianceRule and OutputSchema)

  • Build institutional knowledge (using knowledge graph components)

Getting Started with CRAFT Data Types

The most effective way to implement CRAFT data types is to start with the basics that align with your most common AI interactions. Begin with communication-focused types like Email, HowTo, or SocialPost, then gradually incorporate more complex types as your AI workflows mature.

CRAFT's innovative data types represent a significant advancement in AI interaction design, bridging the gap between programming concepts and natural language communication. By providing structure without sacrificing flexibility, these data types enable entrepreneurs to leverage AI more effectively while maintaining consistency across projects.


Previous
Previous

CRAFT™️ Experiment: ChatGPT 04-mini-high: Rethinking A.I. Variables (2 of 5)

Next
Next

CRAFT™️ Experiment: Copilot: Rethinking A.I. Data Types (5 of 5)