Dynamic Templates Generation #57

Open
opened 2025-10-14 17:31:03 -06:00 by navan · 0 comments
Owner

Originally created by @SunilGudivada on 6/29/2020

Is there any way i can generate the template dynamically instead of loading from the AIML file by using the <extension>

What i mean to say is

<category>
    <pattern>CUSTOM EXTENSION</pattern>
    <template>
      <extension path="ClassPath">
          This is the Data that is Input to the custom extension
      </extension>
   </template>
 </category>

Extension will generate me the dynamic content from the class. This is just to handle the different outputs based on the properties that has been set till date. Extension may return Html or Rich Media Content.

Expected Output will be same the below template:

<category>
    <pattern>CUSTOM EXTENSION</pattern>
    <template>
      <b>Data</b> from the <i>extension</i>
   </template>
 </category>

Question: custom extension
Answer: Data from the extension

*Originally created by @SunilGudivada on 6/29/2020* Is there any way i can generate the template dynamically instead of loading from the AIML file by using the `<extension>` What i mean to say is ``` <category> <pattern>CUSTOM EXTENSION</pattern> <template> <extension path="ClassPath"> This is the Data that is Input to the custom extension </extension> </template> </category> ``` Extension will generate me the dynamic content from the class. This is just to handle the different outputs based on the properties that has been set till date. Extension may return Html or Rich Media Content. Expected Output will be same the below template: ``` <category> <pattern>CUSTOM EXTENSION</pattern> <template> <b>Data</b> from the <i>extension</i> </template> </category> ``` **Question**: custom extension **Answer**: **Data** from the _extension_
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github/program-y#57
No description provided.