Self-reflection and action planning