Chemical basis for minimal cognition