javascript

The javascript element instructs the AIML interpreter to pass
its content (with any appropriate preprocessing, as noted above) to a
server-side JavaScript interpreter on the local machine on which the AIML
interpreter is running. The javascript element does not have any attributes.
AIML does not require that an AIML interpreter include a server-side
JavaScript interpreter, and does not require any particular behavior from
the server-side JavaScript interpreter if it exists. The javascript element
may return a value.

Element Information

Model

star | that | input | thatstar | topicstar | get | bot | sr | date | id | size | version | uppercase | lowercase | formal | sentence | condition | random | set | gossip | srai | person | person2 | gender | think | learn | system | javascript | ANY element from ANY namespace OTHER than 'No Namespace'

Source

<xs:element name="javascript" type="MixedTemplateContentContainer">
  <xs:annotation>
    <xs:documentation>The javascript element instructs the AIML interpreter to pass its content (with any appropriate preprocessing, as noted above) to a server-side JavaScript interpreter on the local machine on which the AIML interpreter is running. The javascript element does not have any attributes. AIML does not require that an AIML interpreter include a server-side JavaScript interpreter, and does not require any particular behavior from the server-side JavaScript interpreter if it exists. The javascript element may return a value.</xs:documentation>
  </xs:annotation>
</xs:element>

Sample