Skip to content

1.2. Transactions and Processors

Jimmy Bourque edited this page Nov 30, 2026 · 1 revision

Français

Operations supported by the generator

This is the list of all existing processor objects, along with their associated event-driven messages and transaction objects.

Azure Service Bus Message Processing Flow

When a message is submitted to the Azure Service Bus queue, the following flow is executed:

  1. The website builds a message and submits it to the API.

  2. The API:

    • validates the submitted data;
    • creates a transaction file;
    • sends a confirmation back to the website.
  3. The website may poll the transaction status, if required.

  4. Asynchronously:

    1. One of the running service instances retrieves the message from the queue.
    2. The associated processing task is instantiated.
    3. The transaction data is processed based on:
      • the submitted data;
      • user parameters;
      • system parameters.
    4. The processing result and logs are stored in the transaction file.
  5. The website retrieves the result from the transaction.


image

Source locations

  • Messages namespace JbtiEvolution.OraklLearn.Types.Messaging
  • Transactions namespace JbtiEvolution.OraklLearn.Types.Transactions
  • Processors namespace JbtiEvolution.OraklLearn.Generator.Host.Processing

List of all corresponding objects

Fine-tune the book topic

Message Transaction Processor
The user filled out the form with the topic and a few keywords. The transaction contains the user parameter, a list of fine-tuned book titles generated by the processor, and a trace of all executed steps. The processor analyzes the topic and keywords provided by the user and generates optimized topics to support the next steps for creating a book.
FinetunePromptMessageV1 FinetunePromptTransaction FinetunePromptProcessor

Generate a book structure

Message Transaction Processor
The user initiates the generation of a book structure sections, chapters, and related subjects by providing the book title, a few keywords, and some filtering information. The transaction contains the user parameters, the generated structure by the processor and a trace of all executed steps. The processor manages the creation of sections, chapters, and synopses for each chapter.
BookStructureMessageV1 BookStructureTransaction BookStructureProcessor

Generate a book from a topic

Message Transaction Processor
The user initiates the generation of all book components, including the text, images, audio, and other content. The transaction includes the user parameters, the entire book content generated by the processor and a trace of all executed steps. This processor is the most resource-intensive component because it generates the text and multimedia content that make up all parts of a book.
BookGeneratorMessageV1 BookGenerationTransaction BookGeneratorProcessor

Create a more detailed book structure based on an existing book

Message Transaction Processor
The user initiates the creation of a book structure sections, chapters, and related topics by selecting a section or chapter from an existing book. The referenced book’s content is then used to explore the selected topic in depth. The transaction includes the user parameters, the book reference, the generated structure by the processor and a trace of all executed steps. The processor will analyze the book’s structure and topic, then generate a new topic-focused structure while avoiding repetition of content from the reference book that falls outside the topic.
BookDeeperStructureMessageV1 BookDeeperStructureTransaction BookDeeperStructureProcessor

Generate a book from an edited version

Message Transaction Processor
After the user edits a book, they initiate the generation of the final version, including any missing media. The transaction includes the user parameters, the complete structure and content edited by the user, and a trace of all executed steps. According to the user settings, the processor will generate any missing media, such as images and audio. It uses the same component as BookGeneratorProcessor to generate a book.
BookRegeneratorMessageV1 BookRegenerationTransaction BookRegeneratorProcessor

Check the text for mistakes and spelling errors

Message Transaction Processor
The user initiates a text review. The transaction includes the text to be reviewed, the report generated by the processor, and a trace of all executed steps. The processor analyzes the text and reports any spelling errors, syntax issues, and other optimization suggestions.
SpellingCheckMDMessageV1 SpellingCheckMdTransaction SpellingCheckMDProcessor

Reorganize the structure of the text

Message Transaction Processor
The user wanted to change the text layout to either a paragraph format or a more complex structure. The transaction includes the user parameters, the original text, the revised text layout, and a trace of all executed steps. The processor only changes the text layout as expected by the user.
StructureTextMessageV1 StructureTextTransaction StructureTextProcessor

Generate more text content

Message Transaction Processor
The user can choose to expand or shorten the text and restructure it into paragraphs or a more complex format. The transaction includes the user parameters, the original text, the expanded text by the processor, and a trace of all executed steps. The processor applies the expansion or shortening and formats the structure as expected by the user.
TextExpansionMessageV1 TextExpansionTransaction TextExpansionProcessor

Refine the book cover, introduction, chapter, or conclusion text

Message Transaction Processor
The user wanted to fine-tune the text to a specific audience, tone, language, cultural context, and writing style. The transaction includes the user parameters, the original text, the fine-tuned text generated by the processor, and a trace of all executed steps. The processor analyzes and adapts the text according to each fine-tuning values provided by the user.
ContentTunerMessageV1 ContentTunerTransaction ContentTunerProcessor

Create a text content from scratch

Message Transaction Processor
The user wanted AI to generate the text based on a title, keyword, or chapter. The transaction includes the user parameters, book data, generated data, and a trace of all executed steps. The processor generates the requested data according to the user parameters.
ContentWriterMessageV1 ContentWriterTransaction ContentWriterProcessor

Create a KPI report

Message Transaction Processor
From the book editor, the user wanted to conduct an in-depth content analysis and compare the results with multiple Key Performance Indicators (KPIs). The transaction contains the user parameters, the text to be analyzed, the report generated by the processor, and a trace of all executed steps. The processor analyzes each KPI asset such as Readability Indices, Legal Aspects, Truth Facets and other ones, and generates a report of the resulting indicators.
ContentKpiMessageV1 ContentKpiTransaction ContentKpiProcessor

Get examples for a specific KPI

Message Transaction Processor
The user is requesting examples related to a previously reported KPI: message ContentKpiMessageV1. The transaction includes the KPI data, the text in the context, the examples list identified by the processor, and a trace of all executed steps. The processor analyses the text and enumerate examples of the KPI specified the user.
ContentKpiExamplesMessageV1 ContentKpiExamplesTransaction ContentKpiExamplesProcessor

Generate an exam

Message Transaction Processor
The user selects a book and configures the exam (quiz) options, including the types of questions and all required specifications. The transaction contains the book reference, all user-selected exam options, all questions generated by the processor, and a trace of each executed steps. The processor loads the book, analyzes each chapter, and generates a set of questions based on the user-selected options. Using an internal distribution matrix, the logic ensures a balanced allocation of question types across all chapters.
ExamGeneratorMessageV1 ExamGenerationTransaction ExamGeneratorProcessor

Review the question texts

Message Transaction Processor
Using the exam editor, the user wanted to review all text for the modified questions. The transaction contains the revised questions, a complete list of corrections suggested by the processor, and a trace of each executed steps. The processor reviews the text of all questions and reports any syntax mistakes.
ProcessingMessage ProcessingTransaction ExamReviewProcessor

Clone this wiki locally