Libraries tagged by eca
drupal-eca-recipe/eca_test_0010
63 Downloads
Forward tokens to custom event
drupal-eca-recipe/eca_test_0009
89 Downloads
Set field values
drupal-eca-recipe/eca_test_0008
58 Downloads
Save new entity
drupal-eca-recipe/eca_test_0007
62 Downloads
Redirects for deleted entities
drupal-eca-recipe/eca_test_0006
58 Downloads
Write Log Message
drupal-eca-recipe/eca_test_0005
104 Downloads
Views
drupal-eca-recipe/eca_test_0004
66 Downloads
Basic entity tests
drupal-eca-recipe/eca_test_0003
48 Downloads
Entity Events Part 2
drupal-eca-recipe/eca_test_0002
56 Downloads
Entity Events Part 1
drupal-eca-recipe/eca_test_0001
328 Downloads
Cross references
drupal-eca-recipe/eca_lib_0052
1 Downloads
Intercepts every chat request that leaves the site through the AI module's provider proxy and sends the ones made on behalf of anonymous visitors to a cheaper provider and model, while a request made for an account keeps whatever the calling code chose. Nothing in the model calls an AI provider: it listens to the "AI request: before provider call" event that the ai_eca_interceptor submodule of AI Integration - ECA exposes, so it governs calls made by AI Assistants, automators, agents and custom code alike without owning any of them. The reroute is recorded as intent and executed by a subscriber that runs last, and it fails open - if the target provider throws, the originally chosen one answers instead. Requires the AI module at 1.4 or newer, and the provider and model ids in the reroute action have to be changed to a target configured on your site.
drupal-eca-recipe/eca_lib_0051
3 Downloads
Scores every newly submitted comment for toxicity and spam with one AI call that returns a strict JSON verdict, then routes that verdict through ordinary ECA conditions into one of three exits: publish, hold for review, or block. The thresholds are two "Token: set value" actions in the model, not numbers in the prompt, so the policy can be changed without touching the prompt. Every run writes both scores, both thresholds and the exit taken to the eca_comment_verdict log channel, and a failed or undecodable AI response holds the comment instead of publishing it. Requires the ai_integration_eca and eca_tamper contributed modules, and a chat model that supports structured output has to be selected in the "Ask AI to score the comment" action.
drupal-eca-recipe/eca_lib_0050
7 Downloads
An external MCP assistant drafts a conference talk with a user and submits it to Drupal, which owns every rule. The model publishes two tools: one submits, the other answers what a submission has to look like - the window, the accepted levels, the tracks the site currently offers and the duration limit for a level - so the assistant asks instead of exploring the site. Both run the same policy actions, so the rules an assistant is told are the rules it is held to. The submitting tool turns its five arguments into tokens, checks the submission window, the audience level, the track and a per-level duration limit before anything is written, and returns a structured result either way. The speaker is taken from the authenticated account and is not a tool argument. A valid proposal is created unpublished in the talk_review workflow, awaiting human review, and the result carries a link to it. The beginner duration rule is a single action in the diagram, which both tools read, so changing it live changes what the tools do and what they advise with no change on the assistant side.
drupal-eca-recipe/eca_lib_0049
7 Downloads
Adds an AI-powered button to the Event node form. "Extract the event details" sends the node title and the description to a chat model with a strict JSON schema and fills the compound Event details field, a Custom Field whose columns hold the venue, the city, the capacity, the ticket price, whether the event is online, a contact address and a registration link. Custom Field columns are defined by the site builder, so the mapping the fill action returns is keyed by those column names, and the typed columns cast the strings the schema asks for. After applying the recipe, select a chat model that supports structured output in the chat action. Requires ECA Field Widget Actions 1.0.x-dev at or after commit c7c3edb, because both the compound fill and the recognition of the custom_field field type are unreleased. The recipe ships the Event content type with its Event details field.
drupal-eca-recipe/eca_lib_0048
8 Downloads
Adds two AI-powered buttons to the Business node form. "Look up the address" asks a chat model for the company's postal address and fills the compound Address field, "Look up the website" fills the Link field. Each branch sends the node title and the body text to the chat model with a strict JSON schema, decodes the answer and maps it onto the field's properties, so a country code, street, city and postal code land in the widget for the editor to review before saving. After applying the recipe, select a chat model that supports structured output in both chat actions. Requires ECA Field Widget Actions 1.0.x-dev newer than 1.0.0-beta2, because the compound fill and its "use_yaml" setting are unreleased. The recipe ships the Business content type with its Address and Link fields.