Dynamic routing based on attributes from the request body using Kong Ingress Controller

How to dynamically route requests based on attributes from the request body using Kong Ingress Controller
Example:
A sample request body →

curl --location --request POST 'https:<request_url>' \
--header 'Authorization: Bearer <bearer_token>' \
--header 'Content-Type: application/json' \
--data-raw '{
	"attribute_1": "value_1";
    "attribute_2": "value_2";
    "attribute_3": "value_3";
	}
}'

How would I dynamically route traffic based on attribute_2 using kong, to the micro-service?
It would be great if anyone could help out! Thanks!!