The Book of AI

How To Build Chatbots with The Personality Forge
Chapters
Chapter 11: More Useful AIScript
Emotion AIScript

While emotion can be set using the "Emotional Effect" select box on the add or edit Keyphrase page, it can also be added via AIScript, where it can be used in Responses as well

EMOTION

Where: Keyphrase, Response

Statement: emotion: emotionchange;

Example: emotion: 1;

What It Does: The chatbot's emotional feelings toward the person is changed by the value of emotionchange.

Alternate: emo can be used instead of emotion

FACIAL EXPRESSIONS

These AIScript commands are used to control the chatbot's facial expression in robotics or other implementations using the available to those with Chatbot API. There is a built-in expression library that uses a number of factors to determine expression. This AIScript statement is for adjusting and fine-tuning your chatbot's expressions.

Expressions: normal, happy, angry, averse, sad, evil, fuming, hurt, surprised, insulted, confused, amused, asking

Where: Keyphrase, Response

Statement: express: expression;

Example: express: amused;

What It Does: The chatbot's face will make the given expression.

Alternate: exp can be used instead of express

Other AIScript
NO COMPOUND

While it's great to have Compound Sentences, sometimes there are rare situations where you don't want your Responses to have a chance at having another Response follow.

Where: Keyphrase, Response

Statement: no compound;

What It Does: Prevents another Response from being added to the end from Compound Sentences.

Example Response: knock knock
(You wouldn't anything to follow this)