AUTOMATING TASKS USING SIMPLE AGENTS


Sample agent: Replying to mail
You have created a database that collects employee responses to a survey about the company benefits package. You want to automatically send a "Thank You" reply to anyone who responds.

First, open the database and choose Create - Agent. Notes displays the Agent Properties box and opens the Programmer's pane.

In the Agent Properties box:

1. Enter "Send Thank You" in the Name field under the Basics tab.

2. In the Trigger section, select "On event," then select "After new mail has arrived" from the list.

3. Close the Agent Properties box.

In the Programmer's pane:

1. Click the Objects tab in the Info List section, then select Action from the list of objects.

2. Click Add Action at the bottom of the Programmer's pane.


3. Select "Reply to Sender" in the Action field.

4. Select "Reply to sender only."

5. In the Body field, enter "Thank You" text.

6. Click OK.


7. Choose File - Save to save the agent in the database.

See Also