FlowX CMS
The Headless Content Management System is part of the core components of the FlowX.AI platform. It can be easily added to your custom FLOWX deployment to enhance the core platform capabilities with functionality specific to taxonomies and managing various content types.
The service includes the following features:
It can be quickly deployed on the chosen infrastructure, preloaded with the needed taxonomies or contents using a REST interface, and then connected to the FlowX Engine through Kafka events.
Let’s go through the steps needed to deploy and set up the service:
CMS setup guide
Using the service
After you deployed the CMS service in your infrastructure, you can start defining and using custom content types, such as different lists (which can have different values for the same code depending on the external system that is used), blog posts etc.
You can also set the default application name to be used in your configuration. This is needed when retrieving the contents.
If this configuration is not set, the service will use flowx
as the default value.
Define needed Kafka topics
Kafka topic names can be set by using environment variables:
Default parameter (env var) | Default FLOWX.AI value (can be overwritten) |
---|---|
KAFKA_TOPIC_REQUEST_CONTENT_IN | ai.flowx.dev.plugin.cms.trigger.retrieve.content.v1 |
KAFKA_TOPIC_REQUEST_CONTENT_OUT | ai.flowx.dev.engine.receive.plugin.cms.retrieve.content.results.v1 |
The Engine is listening for messages on topics with names of a certain pattern, make sure to use an outgoing topic name that matches the pattern configured in the Engine.
Example: Request a label by language or source system code
Used to translate custom codes into labels using the specified language or a certain source system.
Various external systems and integrations might use different labels for the same information. In the processes, it is easier to use the corresponding code and translate this into the needed label when necessary: for example when sending data to other integrations, when generating documents, etc.
You will need to add a Kafka send event CMS service.
The following values are expected in the request body:
- at least one of
language
andsourceSystem
should be defined (if you only need the sourceSystem to be translated, you can leave language empty and vice versa, but they cannot both be empty) - a list of
entries
to be translated
Example:
If the value for application
is not sent, the defaultApplication
value will be used when retrieving the contents from the database.
version
and draft
are not mandatory, if they are not specified, the latest published content will be used.
The service will respond with the following message structure:
Was this page helpful?