Extracting or Assigning a Slot from the http request without custom action

I want to know, How can I extract and assign a slot value, which I have been sending via a http request, without using a custom action server. Below is the curl command I am using to send.

curl -X POST -H "Content-Type: application/json" -d '{
  "slots": {
    "location": "Sydney"
  },
  "message": "Hi",
  "sender": "test_user"
}' http://localhost:5005/webhooks/rest/webhook

There is also another question, which I am trying to figure out. Is there a possibility that we can write a condition in rules or stories to compare the slot value and intent triggered? Simply checking if there is a specific slot value give this output by triggering X intent.

To avoid calling a custom action, you could use a convention for passing the slot and provide examples of that convention in your intent examples. For instance:

"message": "Hi location Sydney"

nlu:
- intent: greet
  examples: |
    - Hi [Sydney](location)