LogoLogo
  • E.D.D.I Documentation
  • Getting started
  • Your first bot
    • Understanding your first bot
  • Bot Manager GUI
  • Creating your first Chatbots
    • Create a "Hello World" bot
    • Create a bot that reacts to user inputs
  • Import/Export a Chatbot
  • Managed Bots
  • Deployement management of Chatbots
  • Extensions
  • Behavior Rules
  • HttpCalls
  • Langchain
  • Output Configuration
  • Conversations
  • Passing context information
  • Output Templating
  • Semantic Parser
  • Git support
  • Docker
  • Setting Up EDDI on AWS with MongoDB Atlas
  • RedHat Openshift
  • Metrics
  • FAQs
Powered by GitBook
On this page
  • Enabling the feature:
  • Example
  • Additional Information :

Was this helpful?

Export as PDF

Output Templating

One of the coolest features of EDDI is it will allow you dynamically template your output based on data that you would receive from httpCalls or context information for instance, that makes EDDI's replies to user interactions richly and dynamically.

The output templating is evaluated by thymeleaf templating engine, that means you can use the majority of thymeleaf tags and expression language to define how you would like your output to be.

Enabling the feature:

Basically while creating the bot you must include eddi://ai.labs.output to one of the packages that will be part of the bot.

Important: The templating feature will not work if it is included before eddi://ai.labs.output extension, it must be included after.

Example

Here is how the output templating should be specified inside of a package.

{
  "packageExtensions": [
    {
      "type": "eddi://ai.labs.output",
      "config": {
        "uri": "eddi://ai.labs.output/outputstore/outputsets/{{outputset_id}}?version=1"
      }
    },
    {
      "type": "eddi://ai.labs.templating"
    }
  ]
}

Make sure the templating is defined after the output, not before.

Additional Information :

PreviousPassing context informationNextSemantic Parser

Last updated 2 years ago

Was this helpful?

Thymeleaf documentation.