Developer
PHP API
ai3-quickmeta follows the capability pattern introduced by wegewerk/ai3_core . The central pieces are:
-
class
ZakAiQuickmeta -
- Fully qualified name
-
\Wegewerk\Ai3Quickmeta\ Api\ Zak Ai Quickmeta
Extends
Wegewerk\(implementingAi3Core\ Api\ Abstract Zak Ai Endpoint Zak). Implements the API endpoint for metadata generation.Ai Endpoint Interface generate(array $options = []): string-
Sends a request to the Zak-AI service to generate metadata.
- param array $options
-
Associative array of options: ``text`` (string, required): The content of the page to analyze.
language(string, optional): The target language for the metadata (default: 'de'). - returntype
-
string
- Returns
-
JSON-encoded string containing the generated metadata fields.
Ajax Endpoints
Ai3 Quickmeta provides backend Ajax routes for its JavaScript application.
ai3_articlemeta
Fetches the current page row and checks if it has content.
- Path:
/ai3/articlemeta - Method:
GET - Parameters:
*
page_(int): The UID of the page.id
ai3_articlemeta_suggestion
Generates metadata suggestions based on page content.
- Path:
/ai3/articlemetasuggestion - Method:
GET - Parameters:
*
page_(int): The UID of the page.id
FormEngine Integration
The assistant is integrated via a custom FormEngine element:
Wegewerk.
It is added to the pages TCA via an override in
Configuration/.