Putting It All Together
This guide shows how all of EDDI's components work together to create a complete, functional agent. We'll build a real-world example step-by-step, explaining how each piece connects.
The Big Picture
EDDI agents are composed of interconnected components that flow through the Lifecycle Pipeline:
Dictionary β Parser β Behavior Rules β Actions β HTTP Calls / LLM β Output β User
β β β β β β
Define Extract Decide what Triggers Fetch data Format Response
words meaning to do execution or call AI responseEach component is a separate configuration that's combined into workflows, which are assembled into agents.
Real-World Example: Hotel Booking Agent
Let's build an agent that helps users book hotel rooms. It will:
Greet users
Ask for city and dates
Check availability via API
Show options
Confirm booking via API
Component Overview
We'll need:
Dictionary: Define hotel-related vocabulary
Parser: Extract entities (cities, dates)
Behavior Rules: Conversation flow logic
Properties: Store user inputs
HTTP Calls: Check availability and create bookings
Output Templates: Display results dynamically
Workflow: Combine everything
Agent: Reference the workflow
Step 1: Create the Dictionary
Purpose: Teach the agent hotel-related language
Returns: eddi://ai.labs.dictionary/dictionarystore/dictionaries/DICT_ID?version=1
How it connects: Parser will use this dictionary to convert "I want to book a hotel" β ["intent(book)", "entity(hotel)"]
Step 2: Create Behavior Rules
Purpose: Define conversation logic and when to trigger actions
Returns: eddi://ai.labs.rules/rulestore/rulesets/BEHAVIOR_ID?version=1
How it connects:
Welcome rule triggers when the conversation starts (the
CONVERSATION_STARTturn, before the user types anything) and never again β shows welcome outputCheck Availability rule triggers when the user asks about availability β calls the API. The city and the dates are not part of the rule: the client sends them as context, and Step 3 stores them as properties
Book Room rule triggers when the user picks a room β the room quick replies built in Step 4 carry
intent(book)β creates the booking
Why no
contextmatcherhere? AcontextmatcherwithcontextType: "string"is an equality test against thestringvalue it carries, not a presence test β"string": "Paris"would make the rule fire for Paris only. (Omitting the value fails rule-set deserialization, and the deployment ends inERRORinstead ofREADY.) Use it to branch on a known value, not to check that a value was sent.
Step 3: Create Property Configuration
Purpose: Extract and store user-provided data
Returns: eddi://ai.labs.property/propertysetterstore/propertysetters/PROPERTY_ID?version=1
How it connects: Property instructions are keyed by the actions that trigger them β when the behavior rule emits httpcall(check-availability), the property setter copies the city, checkInDate and checkOutDate the client sent as context into conversation properties, available as {properties.city} etc. in HTTP calls and output templates β also in later turns, when the client no longer sends them. The room the user picks needs no instruction: its quick reply carries the expression property(room_id(<id>)), and the property setter turns every property(...) expression into a property ({properties.room_id}).
Step 4: Create HTTP Calls
Purpose: Integrate with hotel booking API
Returns: eddi://ai.labs.apicalls/apicallstore/apicalls/HTTP_ID?version=1
How it connects:
check-availabilitycall is triggered by behavior rule β fetches available rooms β creates quick reply buttonscreate-bookingcall is triggered after user selects room β creates booking β stores booking ID and price as properties.fromObjectPathstarts at the call'sresponseObjectName(bookingConfirmation), and the value is stored with its type βtotalPricestays a number
Step 5: Create Output Templates
Purpose: Define agent responses with dynamic data
Returns: eddi://ai.labs.output/outputstore/outputsets/OUTPUT_ID?version=1
How it connects:
welcomeaction β shows greetinghttpcall(check-availability)action β shows room count dynamically from API responsebooking_confirmedaction β shows booking details from stored properties
Step 6: Create Workflow
Purpose: Bundle all components together
Returns: eddi://ai.labs.workflow/workflowstore/workflows/WORKFLOW_ID?version=1
How it connects: Workflow defines the order of lifecycle tasks and loads all configurations
Step 7: Create Agent
Purpose: Create the top-level agent entity
Returns: Agent ID (e.g., AGENT_ID)
How it connects: Agent references the workflow, which contains all the components
Step 8: Deploy Agent
Result: Agent is now active and ready to handle conversations!
Step 9: Test the Agent
Initial Conversation
Response: 201 Created with an empty body β the conversation id is returned in the Location header as an eddi:// URI, and CONV_ID is its last path segment:
Provide City and Check Availability
What happens internally:
Parser: "check availability in Paris" β
["intent(check_availability)"](the dictionary has no entry for "in" or "Paris")Behavior Rules: Matches the "Check Availability" rule
Actions: Triggers
httpcall(check-availability); the property setter storescity,checkInDateandcheckOutDatefrom the contextHTTP Call:
GET https://api.hotels.example.com/availability?city=Paris&checkIn=2025-06-01&checkOut=2025-06-05Response Processing: Creates quick reply buttons from room list
Output: Shows available rooms with dynamic count
Memory: Stores API response for later use
Response:
Book a Room
The user clicks the "Deluxe Suite" quick reply, which sends its value as the input.
What happens internally:
Parser: "Deluxe Suite" matches the quick reply offered in the previous turn β
["intent(book)", "property(room_id(101))"]. Only quick replies the agent itself offered (from its output set or apostResponse) are matched this way β quick replies a client injects throughcontextare displayed but never turned into expressionsBehavior Rules: Matches the "Book Room" rule
Actions: Triggers
httpcall(create-booking)andbooking_confirmed; the property setter storesroom_id=101HTTP Call:
POST https://api.hotels.example.com/bookingswith room detailsResponse Processing: Extracts bookingId and totalPrice, stores in properties
Output: Shows confirmation with dynamic booking details
Response:
How the Components Connect: Visual Flow
Key Takeaways
1. Components are Modular
Each component (dictionary, behavior rules, HTTP calls, outputs) is:
Created independently via API
Versioned separately
Reusable across multiple agents
Testable in isolation
2. Workflows Define Execution Order
The order of the workflow steps matters:
This is the lifecycle pipeline order.
3. Behavior Rules are the Orchestrator
Behavior rules decide:
WHEN to call APIs (
httpcall(check-availability))WHEN to show outputs (
welcome,booking_confirmed)WHICH actions to trigger based on conditions
4. Memory is the Connector
Everything stores data in and reads from conversation memory:
HTTP Calls store responses:
memory.current.httpCalls.availableRoomsProperties store extracted data:
{properties.city}(copied from the client'scontext.city)Outputs read data:
{properties.bookingId}
5. Context Bridges External Systems
Your application passes context to inject real-world data:
User IDs
Session tokens
Business state
Configuration
Common Patterns
Pattern 1: Progressive Data Collection
Pattern 2: API-Then-LLM
Pattern 3: Multi-Step Confirmation
Next Steps
Add LLM Integration: Use OpenAI to handle natural language queries
Add Error Handling: Create behavior rules for failed API calls
Add Validation: Check date formats, availability before booking
Add Conversation Memory: Store booking history across conversations
Export for Reuse: Export the agent and share with team
Related Documentation
Architecture Overview - Understand the big picture
Developer Quickstart - Quick start guide
Behavior Rules - Master decision logic
HTTP Calls - API integration details
Output Templating - Dynamic responses
Conversation Memory - State management
Last updated
Was this helpful?