the present invention may be embodied in any programmable device . the present invention will be described below in the context of a toy that may be programmed to speak or move in a desired fashion . the present invention has application to other programmable devices , and the scope of the present invention should be determined by the claims appended hereto and not the following discussion . the invention may be embodied as a networked system including one or more programmable toys that can be controlled to perform a desired task such as move and / or communicate messages to end users . in contrast to conventional programmable toys whose desired task is programmed during manufacture or through the insertion of external media , the programmable toys of the present invention are programmed remotely through the use of script programs . the script programs allow flexible and dynamic updating of the movement of or messages delivered by the toys , as well as convenient tailoring of toy movement and / or the communicated messages to the needs of particular end users . in an example embodiment of the invention disclosed below , the end users as described above are patients and healthcare providers , and the programmable toys are remotely programmed to encourage healthy behavior in the patients . the terms “ patient ” and “ health care provider ” will be used below interchangeably with the term end user . in the present exemplary embodiment , the programmable toys may be programmed to encourage children to take their medicine or to tolerate difficult healthcare regimens . the encouragement can take the form of a request audibly delivered to the patient in the form of speech and feedback in the form of movement when the request is followed . as generally discussed throughout this application , the system of the present invention is equally well suited for purposes other than healthcare , such as industrial motion control systems , exercise equipment , hvac systems , advertising , home appliances , education , entertainment , or any other application which involves the control of programmable devices to perform a desired task for an end user . the preferred embodiment of the invention is illustrated in fig1 - 7 . referring to fig1 , a networked system 16 includes a server 18 and a workstation 20 connected to server 18 through a communication network 24 . server 18 is preferably a world wide web server and communication network 24 is preferably the internet . it will be apparent to one skilled in the art that server 18 may comprise a single stand - alone computer or multiple computers distributed throughout a network . workstation 20 is preferably a personal computer , remote terminal , or web tv unit connected to server 18 via the internet . workstation 20 functions as a remote interface for entering in server 18 the end task to be performed for the benefit of the end user . system 16 also includes first and second programmable toys 26 and 28 . each programmable toy interacts with a patient end user in accordance with script programs received from server 18 . each programmable toy is connected to server 18 through communication network 24 , preferably the internet . alternatively , the programmable toys may be placed in communication with server 18 via wireless communication networks , cellular networks , telephone networks , or any other network which allows each programmable toy to exchange data with server 18 . for clarity of illustration , only two programmable toys are shown in fig1 . it is to be understood that system 16 may include any number of programmable toys for communicating messages to any number of patient end users . in general , a healthcare provider end user will operate the workstation 20 , a programmer will design and operate the server 18 , and the patient end user will use the toys 26 and 28 . fig2 shows server 18 , workstation 20 , and programmable toy 26 in greater detail . server 18 includes a database 30 for storing script programs 32 . the script programs are executed by the programmable toys to communicate messages to the patients . database 30 further includes a look - up table 34 . table 34 contains a list of the patients who are to receive messages , and for each of the patient end user , a unique identification code and a respective pointer to the script program assigned to the end user . each programmable toy is designed to execute assigned script programs which it receives from server 18 . fig3 - 4 show the structure of each programmable toy according to the preferred embodiment . for clarity , only programmable toy 26 is illustrated since each programmable toy of the exemplary preferred embodiment has substantially identical structure to toy 26 . referring to fig3 , toy 26 is preferably embodied as a doll , such as a teddy bear . alternatively , toy 26 may be embodied as an action figure , robot , or any other desired toy . toy 26 includes a modem jack 46 for connecting the toy to a telephone jack 22 through a connection cord 48 . toy 26 also includes first and second user control buttons 50 and 52 . button 50 is pressed to instruct the toy to execute a script program . button 52 is pressed to instruct the toy to establish a communication link to the server and download a new script program . in alternative embodiments , the control buttons may be replaced by switches , keys , sensors , or any other type of interface suitable for receiving user input . fig4 is a schematic block diagram illustrating the internal components of toy 26 . toy 26 includes an audio processor chip 54 , which is preferably an rsc - 164 chip commercially available from sensory circuits inc . of 1735 n . first street , san jose , calif . 95112 . audio processor chip 54 has a microcontroller 56 for executing script programs received from the server . a memory 58 is connected to microcontroller 56 . memory 58 stores the end user &# 39 ; s unique identification code , script programs received from the server , and a script interpreter used by microcontroller 56 to execute the script programs . the script interpreter translates script commands into the native processor code of microcontroller 56 . specific techniques for translating and executing script commands in this manner are well known in the art . memory 58 also stores a control program executed by microcontroller 56 to perform various control functions which are described in the operation section below . memory 58 is preferably a non - volatile memory , such as a serial eeprom . toy 26 also includes a modem 85 which is connected between microcontroller 56 and modem jack 46 . modem 85 operates under the control of microcontroller 56 to establish communication links to the server through the communication network and to exchange data with the server . the data includes the end user &# 39 ; s unique identification code which modem 85 transmits to the server , as well as assigned script programs which modem 85 receives from the server . modem 85 is preferably a complete 28 . 8 k modem commercially available from cermetek , although any suitable modem may be used . toy 26 further includes a speaker 64 and a microphone 66 . audio processor chip 54 has built in speech synthesis functionality for audibly communicating messages and prompts to an end user through speaker 64 . for speech synthesis , chip 54 includes a digital to analog converter ( dac ) 60 and an amplifier 62 . dac 60 and amplifier 62 drive speaker 64 under the control of microcontroller 56 to communicate the messages and prompts . audio processor chip 54 also has built in speech recognition functionality for recognizing responses spoken into microphone 66 . audio signals received through microphone 66 are converted to electrical signals and sent to a preamp and gain control circuit 68 . circuit 68 is controlled by an automatic gain control circuit 70 , which is in turn controlled by microcontroller 56 . after being amplified by preamp 68 , the electrical signals enter chip 54 and pass through a multiplexer 72 and an analog to digital converter ( adc ) 74 . the resulting digital signals pass through a digital logic circuit 76 and enter microcontroller 56 for speech recognition . audio processor chip 54 also includes a ram 80 for short term memory storage and a rom 82 which stores audio sounds for speech synthesis and programs executed by microcontroller 56 to perform speech recognition and speech synthesis . chip 54 operates at a clock speed determined by a crystal 84 . chip 54 further includes a clock 78 which provides the current date and time to microcontroller 56 . microcontroller 56 is also connected to control buttons 50 and 52 to receive user input . toy 26 is preferably powered by one or more batteries ( not shown ). alternatively , the toy may be powered by a standard wall outlet . both methods for supplying power to a toy are well known in the art . the toy 26 further comprises a motion system 79 that receives control signals from the microcontroller 56 . the motion system 79 can be similar to the motion system used in the “ furby ” doll ; this system 79 allows the toy 26 to shake , move its hands and feet , and open and close its mouth and eyes . the motion system 79 is well - known in the art , but is conventionally preprogrammed at the factory for particular ranges and sequences of movement . referring again to fig2 , server 18 includes a controlling software application 36 which is executed by server 18 to perform the various functions described below . the controlling software application 36 may be a system for generating a sequence of control commands based on an application program for motion control systems such as is disclosed in u . s . pat . nos . 5 , 867 , 385 and 5 , 691 , 897 to brown et al ., which are incorporated herein by reference . the controlling software application 36 includes a script generator 38 and a script assignor 40 . script generator 38 is designed to generate script programs 32 from script information entered through workstation 20 . the script programs 32 are a specific type of command program such as those typically executed by programmable devices . the script programs 32 contain the information necessary for the microcontroller 56 to cause the toy 26 to perform a desired task . the script information is entered through a script entry screen 42 . in the preferred embodiment , script entry screen 42 is implemented as a web page on server 18 . workstation 20 includes a web browser for accessing the web page to enter the script information . fig5 illustrates a sample script entry screen 42 as it appears on workstation 20 . screen 42 includes a script name field 86 for specifying the name of a script program to be generated . screen 42 also includes entry fields 88 for entering information defining the desired task , such as a message containing instructions from the healthcare provider end user to be communicated to the patient end user and a movement to be performed when patient end user complies with the instructions . fig5 illustrates an exemplary set of statements which encourage the end user to comply with his or her diabetes care regimen . however , it is to be understood that any type of desired task may be entered in screen 42 , including movement , sounds , or other messages such as advertisements , educational messages , and entertainment messages . screen 42 further includes a create script button 90 for instructing the script generator to generate a script program from the information entered in screen 42 . screen 42 also includes a cancel button 92 for canceling the information entered . in the preferred embodiment , each script program created by the script generator conforms to the standard file format used on unix systems . in the standard file format , each command is listed in the upper case and followed by a colon . every line in the script program is terminated by a linefeed character { lf }, and only one command is placed on each line . the last character in the script program is a unix end of file character { eof }. table 1 shows an exemplary listing of script commands used in the preferred embodiment of the invention . the script commands illustrated in table 1 are representative of the preferred embodiment and are not intended to limit the scope of the invention . after consideration of the ensuing description , it will be apparent to one skilled in the art many other suitable scripting languages and sets of script commands may be used to implement the invention . script generator 38 preferably stores a script program template which it uses to create each script program . to generate a script program , script generator 38 inserts into the template the information entered in screen 42 . for example , fig6 illustrates a sample script program created by the script generator from the script information shown in fig . s . the script program includes speech commands to synthesize the phrases or statements entered in fields 88 . the steps included in the script program are also shown in the flow chart of fig1 and will be discussed in the operation section below . referring again to fig2 , script assignor 40 is for assigning script programs 32 to the patient end users . script programs 32 are assigned in accordance with script assignment information entered through workstation 30 . the script assignment information is entered through a script assignment screen 44 , which is preferably implemented as a web page on server 18 . fig7 illustrates a sample script assignment screen 44 as it appears on workstation 20 . screen 44 includes check boxes 94 for selecting a script program to be assigned and check boxes 96 for selecting the patient end users to whom the script program is to be assigned . screen 44 also includes an assign script button 100 for entering the assignments . when button 100 is pressed , the script assignor creates and stores for each patient end user selected in check boxes 96 a respective pointer to the script program selected in check boxes 94 . each pointer is stored in the look - up table of the database . screen 44 further includes an add script button 98 for adding a new script program and a delete script button 102 for deleting a script program . the operation of the preferred embodiment is illustrated in fig1 - 10 . fig8 is a flow chart illustrating the steps included in the software application executed by server 18 . in step 202 , server 18 determines if new script information has been entered through script entry screen 42 . if new script information has not been entered , server 18 proceeds to step 206 . if new script information has been entered , server 18 proceeds to step 204 . in the preferred embodiment , the script information is entered in server 18 by one or more healthcare provider end users , such as a physician or case manager assigned to the patient , as generally discussed above . of course , any person desiring to communicate with the end users may be granted access to the server to create and assign script programs . further , it is to be understood that the system may include any number of remote interfaces for entering script generation and script assignment information in server 18 . in a toy created for entertainment rather than healthcare purposes , a child may log on to the server 18 , custom design a script program , and download the program into the toy . as shown in fig5 , the script information specifies a desired task , such as a message containing a set of statements or phrases , to be communicated to one or more patient end users . the desired task may further comprise movements selected and / or entered in a similar manner . in step 204 , the script generator 38 generates a script program from the information entered in screen 42 . the script program is stored in database 30 . steps 202 and 204 are preferably repeated to generate multiple script programs , e . g . a script program for diabetes patients , a script program for asthma patients , etc . each script program corresponds to a respective one of the sets of statements entered through script entry screen 42 . in step 206 , the server 18 determines if new script assignment information has been entered through assignment screen 44 . if new script assignment information has not been entered , server 18 proceeds to step 210 . if new script assignment information has been entered server 18 proceeds to step 208 . as shown in fig7 , the script assignment information is entered by the healthcare provider end user by selecting a desired script program through check boxes 94 , selecting the patient end users to whom the selected script program is to be assigned through check boxes 96 , and pressing the assign script button 100 . when button 100 is pressed , script assignor 40 creates for each end user selected in check boxes 96 a respective pointer to the script program selected in check boxes 94 . in step 208 , each pointer is stored in look - up table 34 of database 30 . in step 210 , server 18 determines if any one of the programmable toys is remotely connected to the server . each patient end user is preferably provided with his or her own programmable toy which has the end user &# 39 ; s unique identification code stored therein . each patient end user is thus uniquely associated with a respective one of the programmable toys . if none of the programmable toys is connected , server 18 returns to step 202 . if a programmable toy is connected , server 18 receives from the programmable toy the patient end user &# 39 ; s unique identification code to retrieve from table 34 the pointer to the script program assigned to the patient end user . in step 214 , server 18 retrieves the assigned script program from database 30 . in step 216 , server 18 transmits the assigned script program to the patient end user &# 39 ; s programmable toy through communication network 24 . following step 216 , the server returns to step 202 . each programmable toy is initially programmed with its user &# 39 ; s unique identification code , the script interpreter used by the toy to interpret and execute script program commands , and a control program executed by the toy to control its overall operation . the initial programming may be achieved during manufacture or during an initial connection to server 18 . fig9 illustrates the steps included in the control program executed by microcontroller 56 of programmable toy 26 . in step 302 , microcontroller 56 determines if any user input has been received . in the preferred embodiment , user input is received through control buttons 50 and 52 . control button 50 is pressed to instruct the programmable toy to move and / or speak , and control button 52 is pressed to instruct the toy to connect to the server and download a new script program . if no user input is received for a predetermined period of time , such as two minutes , toy 26 enters sleep mode in step 304 . the sleep mode conserves battery power while the toy is not in use . following step 304 , microcontroller 56 returns to step 302 and awaits user input . if user input has been received , microcontroller 56 determines if the input is a task request , step 306 . if the user has pressed control button 50 , if microcontroller 56 executes the script program last received from the server , step 308 . the steps included in a sample script program are shown in the flow chart of fig1 and will be discussed below . following step 308 , microcontroller 56 returns to step 302 and awaits new user input . if the user presses control button 52 requesting a connection to the server , microcontroller 56 attempts to establish a communication link to the server through modem 85 and communication network 24 , step 310 . in step 312 , microcontroller determines if the connection was successful . if the connection failed , the user is prompted to connect toy 26 to telephone jack 22 in step 314 . microcontroller 56 preferably prompts the user by synthesizing the phrase “ please connect me to the telephone jack using the connection cord and say ‘ done ’ when you have finished .” in step 316 , microcontroller 56 waits until the appropriate reply is received through microphone 66 . upon recognizing the reply ‘ done ’, microcontroller 56 repeats step 310 to get a successful connection to the server . once a successful connection is established , microcontroller 56 transmits the unique identification code stored in memory 58 to server 18 in step 318 . in step 320 , microcontroller 56 receives a new script program from the server through communication network 24 and modem 85 . the new script program is stored in memory 58 for subsequent execution by microcontroller 56 . following step 320 , microcontroller 56 returns to step 302 and awaits new user input . fig1 is a flow chart illustrating the steps included in a sample script program executed by microcontroller 56 . in step 402 , microcontroller 56 prompts the user by synthesizing through speaker 64 “ say ‘ ok ’ when you are ready ”. in step 404 , microcontroller 56 waits until a reply to the prompt is received through the microphone 66 . when the reply ‘ ok ’ is recognized , microcontroller 55 proceeds to step 406 . if no reply is received within a predetermined period of time , such as two minutes , toy 26 preferably enters sleep mode until it is reactivated by pressing one of the control buttons . in step 406 , microcontroller 56 executes successive speech commands to synthesize through speaker 64 the phrases or statements specified in the script program . referring again to fig6 , the speech commands are preferably separated by delay commands which instruct microcontroller 56 to pause for a number of seconds between statements . the number of seconds is selected to allow the user sufficient time to absorb each statement . alternatively , the user may be prompted to acknowledge each statement before a subsequent statement is synthesized . for example , the script program may include commands which instruct microcontroller 56 to synthesize the phrase “ say ‘ ok ’ when you are ready to hear the next statement .” upon recognizing the reply ‘ ok ’, microcontroller 56 proceeds to the next speech command in the script program . movement commands are processed for execution by the motion system in a similar manner . in step 408 , the user is reminded to connect toy 26 to telephone jack 22 to download a new script program . microcontroller 56 synthesizes through speaker 64 “ please connect me to the telephone jack to get new messages .” following step 408 , the script program ends . one advantage of the system of the present invention is that it allows each programmable toy to be programmed remotely through the use of script programs . this allows the task performed by each programmable toy to be tailored to the specific needs of a specific end user or group of end users . moreover , each script program may be easily created , assigned , and downloaded by simply accessing a server through a communication network , such as the internet . thus , the invention provides a powerful , convenient , and inexpensive system for communicating messages to a large number of end users . fig1 - 15 illustrate a second embodiment of the invention in which messages are further customized to each patient end user by merging personal data with the script programs , much like a standard mail merge application . referring to fig1 , personal data relating to each patient end user is preferably stored in look - up table 34 of database 30 . by way of example , the data may include each patient end user &# 39 ; s name , the name of each patient end user &# 39 ; s medication or disease , or any other desired data . as in the preferred embodiment , database 30 also stores generic script programs 31 created by script generator 38 . in the second embodiment , server 18 includes a data merge program 41 for merging the data stored in table 34 with generic script programs 31 . data merge program 41 is designed to retrieve selected data from table 34 and to insert the data into statements in generic script programs 31 , thus creating custom script programs 33 . each custom script program contains a message which is customized to a patient end user . for example , the message may be customized with the patient end user &# 39 ; s name , medication name , disease name , etc . the operation of the second embodiment is illustrated in fig1 - 15 . the operation of the second embodiment is similar to the operation of the preferred embodiment except that server 18 transmits custom script programs to each programmable toy rather than generic script programs . fig1 is a flow chart illustrating the steps included in a software application executed by server 18 according to the second embodiment . in step 502 , server 18 determines if new script information has been entered through script entry screen 42 . if new script information has not been entered , server 18 proceeds to step 506 . if new script information has been entered , server 18 proceeds to step 504 . as shown in fig1 , the script information specifies a message , such as a set of statements or phrases , to be communicated to the patient end users . each statement preferably includes one or more insert commands specifying data from table 34 to be inserted into the statement . the insert commands instruct data merge program 41 to retrieve the specified data from database 30 and to insert the data into the statement . for example , the first statement shown in fig1 includes insert commands instructing the data merge program to insert a patient name and a medication name into the statement . following entry of the statements and insert commands , create script button 90 is pressed . when button 90 is pressed , script generator 38 generates a generic script program from the information entered in screen 42 , step 504 . a sample generic script program is illustrated in fig1 . the generic script program includes speech commands to synthesize the statements entered in fields 88 . each statement preferably includes one or more insert commands specifying data to be inserted into the script program . the generic script program is stored in database 30 . in step 506 , server 18 determines if new script assignment information has been entered through assignment screen 44 . if new script assignment information has not been entered , server 18 proceeds to step 512 . if new script assignment information has been entered , server 18 proceeds to step 508 . as shown in fig7 , the script assignment information is entered by selecting a desired script program through check boxes 94 , selecting the patient end users to whom the selected script program is to be assigned through check boxes 96 , and pressing the assign script button 100 . when button 100 is pressed , data merge program 41 creates a custom script program for each patient end user selected in check boxes 96 , step 508 . each custom script program is preferably created by using the selected generic script program as a template . for each patient end user selected , data merge program 41 retrieves from database 30 the data specified in the insert commands . next , data merge program 41 inserts the data into the appropriate statements in the generic script program to create a custom script program for the patient end user . for example , fig1 illustrates a custom script program created from the generic script program of fig1 . each custom script program is stored in database 30 . as each custom script program is generated for a patient end user , script assignor 40 assigns the custom script program to the patient end user , step 510 . this is preferably accomplished by creating a pointer to the custom script program and storing the pointer with the patient end user &# 39 ; s unique identification code in table 34 . in step 512 , server 18 determines if any one of the programmable toys is remotely connected to the server . if a programmable toy is connected , server 18 receives from the programmable toy the patient end user &# 39 ; s unique identification code in step 514 . server 18 uses the received identification code to retrieve from table 34 the pointer to the custom script program assigned to the patient end user . in step 516 , server 18 retrieves the custom script program from database 30 . in step 518 , server 18 transmits the custom script program to the patient end user &# 39 ; s programmable toy . the programmable toy receives and executes the script program in the same manner described in the preferred embodiment . the remaining operation of the second embodiment is analogous to the operation of the preferred embodiment described above . although it is presently preferred to generate a custom script program for each patient end user as soon as script assignment information is received for the patient end user , it is also possible to wait until the patient end user &# 39 ; s programmable toys connects to the server before generating the custom script program . this is accomplished by creating and storing a pointer to the generic script program assigned to the patient end user , as previously described in the preferred embodiment . when the patient end user &# 39 ; s programmable toy connects to the server , the data merge program creates a custom script program for the patient end user from the generic script program assigned to the patient end user . the custom script program is then transmitted to the patient end user &# 39 ; s programmable toy for execution . although the first and second embodiments focus on healthcare applications , the system of the present invention may be used for any messaging application . for example , the system is particularly well suited for advertising . in a third embodiment of the invention , an advertising service is provided with a remote interface to the server for creating and assigning script programs which contain advertising messages . as shown in fig1 , each advertising message may be conveniently entered through script entry screen 42 , like the health - related messages of the preferred embodiment . the operation of the third embodiment is analogous to the operation of the preferred embodiment , except that the talking toys communicate advertising messages rather than health - related messages . of course , the system of the present invention has many other applications . typically , the user of each programmable toy is a child . in a fourth embodiment of the invention , the child &# 39 ; s parent or guardian is provided with a remote interface to the server for creating and assigning script programs which contain messages for the child . as shown in fig1 , each message may be conveniently entered through script entry screen 42 . the operation of the fourth embodiment is analogous to the operation of the preferred embodiment , except that script information is entered in the server by a parent or guardian rather than a healthcare provider . alternatively , the child may be provided with a remote interface to the server to create and assign his or her own script programs . it should also be noted that script programs may be generated from information received from multiple sources , such as a healthcare provider , an advertiser , and a parent . in a fifth embodiment of the invention , the script entry screen includes a respective section for each of the sources to enter a message to be communicated . each of the sources is provided with a remote interface to the server and a password for accessing the script entry screen . after each source has entered one or more messages in the server , a script program is generated which contains a combination of health - related messages , advertisements , educational messages , or entertainment messages . the remaining operation of the fifth embodiment is analogous to the operation of the preferred embodiment described above . although the above description contains many specificities , these should not be construed as limitations on the scope of the invention but merely as illustrations of some of the presently preferred embodiments . many other embodiments of the invention are possible . for example , the scripting language and script commands shown are representative of the preferred embodiment . it will be apparent to one skilled in the art many other scripting languages and specific script commands may be used to implement the invention . moreover , the programmable device need not be embodied as a doll . the toys may be embodied as action figures , robots , or any other type of toy . further , each programmable toy need not include a control button for triggering speech output . in alternative embodiments , speech is triggered by other mechanisms , such as voice prompts , the absence of the user &# 39 ; s voice , position sensitive sensors , switches , or the like . specific techniques for triggering speech in a programmable toy are well known in the art . in addition , the system of the present invention is not limited to healthcare applications . the system may be used in any application which involves the communication of messages , including advertising , education , or entertainment . of course , various combinations of these applications are also possible . for example , messages from multiple sources may be combined to generate script programs which contain a combination of health - related messages , advertisements , or educational messages . further , the system may include any number of remote interfaces for entering and assigning script programs , and any number of programmable toys for delivering messages . more generally , the programmable device need not be a toy . for example , the programmable device may be a handheld computing device adapted to control and monitor an athlete end user &# 39 ; s performance during athletic training . the device may monitor the athlete end user &# 39 ; s heart rate and lactose levels . the device may be remotely programmed by a trainer end user or automated system with instructions for training for a specific athletic event based on data collected by the handheld device . the programmable device may be a household appliance such as a refrigerator that monitors its contents . a remote end user such as a service that delivers groceries could reprogram the refrigerator as necessary to reflect delivered goods . the programmable device may also be an industrial motion control system such as a robotic welding machine . an engineer in charge of the product being welded may change its design and remotely generate a new command program for the robotic welding machine in response to the design changes . the programmable device may be an hvac system that communicates with a remote weather monitoring system that generates a new command program for the hvac system in response to changes in the weather . the embodiments of the present invention disclosed above are merely an illustrative , and not exhaustive , list of the environments in which the present invention may be applied . therefore , the scope of the invention should be determined not by the examples given , but by the appended claims and their legal equivalents .