Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Putting It All Together

Version

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   response

Each 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:

  1. Greet users

  2. Ask for city and dates

  3. Check availability via API

  4. Show options

  5. 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_START turn, before the user types anything) and never again β†’ shows welcome output

  • Check 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 contextmatcher here? A contextmatcher with contextType: "string" is an equality test against the string value 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 in ERROR instead of READY.) 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-availability call is triggered by behavior rule β†’ fetches available rooms β†’ creates quick reply buttons

  • create-booking call is triggered after user selects room β†’ creates booking β†’ stores booking ID and price as properties. fromObjectPath starts at the call's responseObjectName (bookingConfirmation), and the value is stored with its type β€” totalPrice stays 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:

  • welcome action β†’ shows greeting

  • httpcall(check-availability) action β†’ shows room count dynamically from API response

  • booking_confirmed action β†’ 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:

  1. Parser: "check availability in Paris" β†’ ["intent(check_availability)"] (the dictionary has no entry for "in" or "Paris")

  2. Behavior Rules: Matches the "Check Availability" rule

  3. Actions: Triggers httpcall(check-availability); the property setter stores city, checkInDate and checkOutDate from the context

  4. HTTP Call: GET https://api.hotels.example.com/availability?city=Paris&checkIn=2025-06-01&checkOut=2025-06-05

  5. Response Processing: Creates quick reply buttons from room list

  6. Output: Shows available rooms with dynamic count

  7. 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:

  1. 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 a postResponse) are matched this way β€” quick replies a client injects through context are displayed but never turned into expressions

  2. Behavior Rules: Matches the "Book Room" rule

  3. Actions: Triggers httpcall(create-booking) and booking_confirmed; the property setter stores room_id = 101

  4. HTTP Call: POST https://api.hotels.example.com/bookings with room details

  5. Response Processing: Extracts bookingId and totalPrice, stores in properties

  6. 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.availableRooms

  • Properties store extracted data: {properties.city} (copied from the client's context.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

Last updated

Was this helpful?