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

**URL:** <https://forum.rasa.com/t/extracting-or-assigning-a-slot-from-the-http-request-without-custom-action/61637>\
**Category:** Rasa Open Source\
**Created:** [April 14, 2024, 3:34pm UTC](https://forum.rasa.com/t/extracting-or-assigning-a-slot-from-the-http-request-without-custom-action/61637 "2024-04-14T15:34:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Procasinator](https://avatars.discourse-cdn.com/v4/letter/p/e274bd/32.png) [@Procasinator](https://forum.rasa.com/u/Procasinator)\
**Post date:** [April 14, 2024, 3:34pm UTC](https://forum.rasa.com/t/extracting-or-assigning-a-slot-from-the-http-request-without-custom-action/61637/1 "2024-04-14T15:34:14Z")

</div>

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.

```auto
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.

---

<div class="post-metadata">

**Author:** ![stephens](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/stephens/32/1632_2.png) [@stephens](https://forum.rasa.com/u/stephens)\
**Post date:** [April 20, 2024, 4:06am UTC](https://forum.rasa.com/t/extracting-or-assigning-a-slot-from-the-http-request-without-custom-action/61637/2 "2024-04-20T04:06:37Z")

</div>

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"`

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

```
