You can find the ToolTalk Messaging Service demos in /usr/dt/examples/tt. Read the README file for detailed information on the demos.
For more information on the ToolTalk Messaging Service, see the relevant man pages and the Common Desktop Environment: ToolTalk Messaging Overview.