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
Implements the API endpoint for metadata generation.
- generate ( string $imagePath, string $description, string $language) : array
-
Sends a request to the Zak-AI service to generate metadata.
- param string $imagePath
-
Not used in this implementation (can be empty).
- param string $description
-
The content of the page to analyze.
- param string $language
-
The target language for the metadata (default: 'de').
- returntype
-
array
- Returns
-
An array 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/.