# Influence Stories with Metadata

**URL:** <https://forum.rasa.com/t/influence-stories-with-metadata/53105>\
**Category:** Rasa Open Source\
**Created:** [May 10, 2022, 1:44pm UTC](https://forum.rasa.com/t/influence-stories-with-metadata/53105 "2022-05-10T13:44:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![PeterPanski](https://avatars.discourse-cdn.com/v4/letter/p/6f9a4e/32.png) [@PeterPanski](https://forum.rasa.com/u/PeterPanski)\
**Post date:** [May 10, 2022, 1:44pm UTC](https://forum.rasa.com/t/influence-stories-with-metadata/53105/1 "2022-05-10T13:44:52Z")

</div>

Hello, I am working on a problem for a few days now and I tought I might just ask,

The chatbot I am build is dependent on the site the user is on. As an example: If the user asks: What am I supposed to do here? There needs to be a different answer if he is on the login screen or if he is in his profile configurations.

I tried solving this issue by working with stories and sending the site the user is on as a message, for example:

```auto
- story: 8G
  steps:
  - intent: 8G_id
  - action: utter_listening
  - intent: exampel_question
  - action: utter_8G_exampel_question
- story: GM
  steps:
  - intent: GM_id
  - action: utter_listening
  - intent: exampel_question
  - action: utter_GM_exampel_question
- story: general
  - intent: exampel_question
  - action: utter_exampel_question

```

The first intent and action were automatic and not seen by the user. To be honest, this approach worked horrible.

I then looked into sending metadata via the rest-request and using those to distinguish between the answers that need to be given.

Is there a simple solution to solve this problem?

---

<div class="post-metadata">

**Author:** ![ChrisRahme](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/chrisrahme/32/15572_2.png) [@ChrisRahme](https://forum.rasa.com/u/ChrisRahme)\
**Post date:** [May 10, 2022, 6:09pm UTC](https://forum.rasa.com/t/influence-stories-with-metadata/53105/2 "2022-05-10T18:09:55Z")

</div>

“What am I supposed to do here?” should always return the same intent.

And then, in a [custom action](https://rasa.com/docs/action-server/sdk-actions), you [utter a message](https://rasa.com/docs/action-server/sdk-dispatcher#collectingdispatcherutter_message) according to the metadata (which I assume will be a [slot](https://rasa.com/docs/action-server/sdk-tracker#trackerget_slot) or [entity](https://rasa.com/docs/action-server/sdk-tracker#trackerget_latest_entity_values)).
