Skip to main content

Drupal Integration

Drupal Integration

Integrate OSSA agents with Drupal's LLM Platform.

Overview

The OSSA Drupal modules provide:

  • Agent management UI
  • Workflow orchestration
  • CrewAI integration
  • Marketplace for agents

Available Modules

ModuleDescription
ai_agents_ossaCore OSSA integration
ai_agents_orchestraWorkflow orchestration
ai_agents_crewaiCrewAI framework bridge
ai_agents_marketplaceAgent marketplace
ai_agents_huggingfaceHuggingFace models

Installation

Via Composer

composer require drupal/ai_agents_ossa drush en ai_agents_ossa

Configuration

  1. Go to /admin/config/ai/agents
  2. Configure LLM provider credentials
  3. Import OSSA manifests

Creating Agents in Drupal

Using the UI

  1. Navigate to /admin/content/agents
  2. Click "Add Agent"
  3. Upload OSSA manifest or configure inline

Using Drush

# Import agent from manifest drush ai:agent:import path/to/agent.ossa.yaml # List agents drush ai:agent:list # Run agent drush ai:agent:run my-agent "Hello"

Workflow Orchestration

The ai_agents_orchestra module enables multi-agent workflows:

# workflow.ossa.yaml apiVersion: ossa/v0.3.x kind: AgentGraph metadata: name: support-workflow spec: agents: - ref: triage-agent - ref: resolver-agent edges: - from: triage-agent to: resolver-agent process: sequential

ECA Integration

OSSA agents work with Drupal's ECA (Event-Condition-Action):

  • Trigger agents on content events
  • Use agent responses in conditions
  • Chain multiple agents

API Endpoints

EndpointMethodDescription
/api/agentsGETList agents
/api/agents/{id}/runPOSTRun agent
/api/agents/{id}/statusGETAgent status

Next Steps