ReAct (Reasoning & Acting)

Overview
The ReAct reasoning engine powers the ai12z platform's advanced AI assistant capabilities. It orchestrates integrations, tools, and data sources to provide accurate, context-aware answers and perform multi-step tasks. ReAct can connect to many sources (CMS, CRM, APIs, documents, and more) and plans the best sequence of actions to satisfy user requests.
By default, Answer AI (our Retrieval-Augmented Generation or RAG engine) is the fallback integration, ensuring that user queries are always answered with relevant, organization-specific information.
ReAct Agentic Workflow
Core Steps
- User Query: A user asks a question or submits a request.
- ReAct Planning: The LLM (ReAct) reviews the available integrations, tools, forms, and conversation context to devise a plan.
- Tool & Integration Calls: ReAct may:
- Call a single integration (e.g., database, external API, document retrieval)
- Sequence several tools together (e.g., fetch data, compare results, escalate to a live agent)
- Fall back to Answer AI (RAG) when no other integration provides an answer
- Context-Aware Response: The answer is constructed using both retrieved information and ReAct's reasoning, then streamed or delivered to the user.
RAG / Answer AI Integration
Answer AI (RAG) is the default engine ReAct calls for knowledge retrieval when other integrations can't provide an answer. Answer AI queries the vector database and always grounds its answers in your own data—never in general LLM knowledge.
- Direct Streaming: By default, Answer AI streams its results directly to the user for maximum speed.
- Post-Processing Mode: When additional reasoning is needed (e.g., product comparisons), ReAct sets a flag to prevent streaming. Instead, Answer AI returns its result for further processing before the final answer is sent.
Product Comparison Workflow
When comparing multiple products or items:
- ReAct sets
requiresReasoning=true - It makes parallel calls to Answer AI for each product, each with its own vector query
- All results are aggregated by ReAct, which then performs the reasoning or comparison logic
- This design enables fast, accurate multi-item comparisons
When requiresReasoning=false, Answer AI streams output directly to the user without extra delay.

Configuration
Vibe Coding for ReAct System Prompts
ReAct now includes intelligent vibe coding assistance that understands your entire integration ecosystem and available tools. Instead of manually crafting complex system prompt instructions, you can describe what you want in natural language.
The Instruction Panel on the right side of the ReAct settings interface enables conversational prompt editing:
-
Describe Your Goal: Explain what behavior or decision-making logic you need
- Example: "When users ask about pricing, call the CRM to check their account tier first"
- Example: "Add logic to escalate to live agent when sentiment is negative"
- Example: "Prioritize the Google Maps integration for location questions"
-
Tool Awareness: The system understands all available integrations and tools:
- CRM Connectors (Salesforce, Dynamics, HubSpot)
- JSON REST APIs and GraphQL endpoints
- Forms and concierge/assist functions
- Live Agent Escalation workflows
- Google Maps, stock/weather data, and external APIs
- MCP Protocol integrations
- Website scrapers and document repositories
-
Intelligent Structuring: Vibe coding knows how to:
- Structure integration prioritization logic
- Define when to use specific tools
- Set up fallback patterns to Answer AI
- Configure multi-step reasoning workflows
- Implement escalation triggers and conditions
Use the Instruction panel to describe changes, and the AI will help structure them correctly within the ReAct system prompt, maintaining consistency and best practices.
Preview

Markdown

System Prompt
Editing with Vibe Coding
When you create an Agent, ai12z automatically generates a system prompt for ReAct. This prompt defines the AI's decision-making behavior, integration usage patterns, and coordination logic for achieving user goals.
With Vibe Coding, you can now modify the ReAct system prompt through natural conversation:
What You Can Configure:
- Integration Priorities: Define which tools to try first for specific question types
- Decision Logic: Specify how ReAct should reason about user requests
- Tool Selection Rules: Set conditions for when to use specific integrations
- Escalation Patterns: Configure when to hand off to live agents or other systems
- Fallback Behavior: Define what happens when primary integrations can't answer
- Multi-Step Workflows: Describe sequences of actions for complex tasks
How It Works:
- Use the Instruction panel to describe your desired behavior in plain language
- The AI understands your integration ecosystem and how to reference tools properly
- Changes are intelligently structured into the system prompt format
- Review the generated modifications before saving
Example Instructions:
- "When asked about product availability, check the inventory API first, then fall back to Answer AI"
- "For questions about account status, always use the CRM integration before answering"
- "If the user mentions they want to speak to someone, immediately call the live agent escalation tool"
The system prompt should include:
- Organization name and URL for context
- Agent's purpose and decision-making guidelines
- Integration priority and usage instructions
- Escalation and fallback procedures
Prompt management: Every update is automatically versioned in history. Use "Recreate Prompt" in agent properties to regenerate system prompts based on updated agent configuration.
Traditional Editing: You can also edit the system prompt directly in the markdown editor for complete manual control.
Dynamic Tokens
ReAct system prompts support dynamic tokens that provide real-time context:
{org_name}: Organization name for context-aware responses{purpose}: Agent's stated purpose and objectives{org_url}: Organization domain URL for reference{tz=Pacific/Honolulu}: Timezone information for time-sensitive operations{history}: Conversation history for context continuity{query}: Current user query being processed
Parameters
Model Selection
- GPT-4o-mini: Default - Optimized balance of reasoning capability and speed
- GPT-4o: Enhanced reasoning for complex decision trees
- GPT-4.1-mini: Latest compact version with improved logic
- GPT-4.1: Advanced reasoning and planning capabilities