Example - Adding an Agent Task
You want to run the high_returns_followup agent
to detect a high rate of returned items and resolve the related issue.
However, for each item that has a high rate of return, you also want
to check the importance of the customer to your company as calculated
from data in a data warehouse system. The customer's importance
value is calculated using projected sales and profit data.
You create a second agent named high_returns_customer_check that is run by the high_returns_followup agent. When a high return event occurs, the high_returns_followup agent runs and passes customer details to the high_returns_customer_check agent. The high_returns_customer_check agent then runs a query to check the customer importance value. If the customer importance value is high, the high_returns_customer_check agent sends an e-mail asking the customer services agent to contact the customer and fix the problem immediately.