Designing and implementing intelligent agents for e-health