# Creating Actions from a Dashboard

> We know that a lot of developers love the ability to create Actions with our IoT platform, but we also understand that this can get a bit tricky, especially if your customers are looking to do it themselves.

![Creating Actions from a Dashboard](https://tago.io/og/blog/creating-actions-from-a-dashboard.png)

We know that a lot of developers love the ability to create **Actions** with our IoT platform, but we also understand that this can get a bit tricky, especially if your customers are looking to do it themselves. So if you've ever wanted to let your end-users create and set up their own alert notifications, using a dashboard to do so might just be the solution you, and your end-users, have been looking for.

To actually do this, we'll be referencing a [really useful, yet more technical guide on our documentation](https://community.tago.io/t/how-to-create-actions-from-a-dashboard/402).

First thing you have to do is set up the **Analysis** by installing this [template](http://admin.tago.io/template/5f53222c643d0e001b97e81b) and setting up the **Environment variable** tab by giving it an account token, which you can find by going to your [**Profile**](https://admin.tago.io/profile), then heading over to the **Tokens** tab and generating a new one that you should set to never expire. From there, you simply have to copy the token (by clicking the Copy Button) and putting it on the **Environment variables** tab right where it asks for your **account-token**.

![Creating an account token on TagoIO](./images/creating-actions-from-a-dashboard/suVAZD7neYRLSATUKMfpENvRp0.png)

_Which you can find by going to your Profile, then heading over to the Tokens tab and generating a new one that you should set to never expire._

![Creating an action on TagoIO](./images/creating-actions-from-a-dashboard/r8cs0mSq2uOzwZGH4mAvqLt7A.png)

_And putting it on the Environment variables tab right where it asks for your account-token_

Next you'll need to get a **Dashboard** set up, which we'll do by simply installing this [template](https://admin.tago.io/template/5f52ea0b643d0e001b8f27ff), confirming all the prompted settings, and then selecting the **Analysis** that we just previously set up. With this **Analysis** associated with our dashboard, we can now move on to setting up our devices to work with this Blueprint Dashboard. You'll need to go to each device's settings that you'll be using and add a tag with the key **can\_create**, and the value **actions**. This being because that's what this Blueprint Dashboard requires from us, as it's able to use any device and dynamically change accordingly, as long as they have that tag **key** and **value** as we can observe in the Blueprint Dashboard's settings itself (which you could change to something else if you needed to).

![Using tags to create permissions on TagoIO](./images/creating-actions-from-a-dashboard/mHLdTxGmwEN7j6AHgntQyWcafcQ.png)

_You'll need to go to each device's settings that you'll be using and add a tag with the key can\_create, and the value actions._

![Blueprint devices on TagoIO](./images/creating-actions-from-a-dashboard/QJFrIJNRS9ISNlCj4WrLkLnlas.png)

_This being because that's what this Blueprint Dashboard requires from us, as it's able to use any device and dynamically change accordingly, as long as they have that tag key and value as we can observe in the Blueprint Dashboard's settings itself (which you could change to something else if you needed to)_

If we have that all set up, now you can start selecting devices to use on the dashboard that have that tag. And at this point, we should pay attention to this dashboard's tabs, which include **List**, and **Help**. But what's important to note here is that a developer, when you click on the edit dashboard button (the pencil icon on the top right), a new tab pops up, aptly called **Hidden tab**. This tab is where all of the alerts are actually going to be created, and this process is really simple, as you just have to set the trigger conditions, the unlock conditions, and what type of alert you want the action to be. Once you click **add**, your alert will be saved and it'll be placed over on the **List** tab. But as we can see, this **Hidden tab** is inherently hidden, so that's why it's been made available on the **List** tab itself when you click on the green **Add alert** button. When you click on this button, the same set of prompts show up as was on the **Hidden tab**, but this one is readily available to be used without having to switch off from the **List** tab.

![Creating alerts on TagoIO](./images/creating-actions-from-a-dashboard/p5ZddDurFhm4hvPSandKZXKx3s.png)

_When you click on the edit dashboard button (the pencil icon on the top right)_

![Hidden tab](./images/creating-actions-from-a-dashboard/cpwKWjxA5FpLhZvX83RCbWNkLeE.png)

_A new tab pops up, aptly called Hidden tab_

![Add alert](./images/creating-actions-from-a-dashboard/UyiFQkmMeEfpdRZMtdAODxtz9XI.png)

_So that's why it's been made available on the List tab itself when you click on the green Add alert button_

Now that we have the dashboard and the devices set up to interact with it, we just need to give your end-users permission to access the dashboard. This step requires you to have **TagoRUN** enabled in your account, which you can simply do, if you haven't already, by going to the **Run** button on the sidebar and generating your **RUN** and a URL for your users to login through.

If you want a more in-depth explanation or guide to **TagoRUN**, make sure to learn more about it on our [documentation](https://help.tago.io/portal/en/kb/articles/191-tagorun).

For any of your users to actually login however, you'll have to have those users in your account, which can easily be setup by clicking on the **Users** button in your sidebar and adding them through there! Now when you click on the **Access** button on your sidebar, you'll be able to create access policies so that you can determine exactly what your users will have access to. With what we've been working with, you'll need to create a policy with the following information:

-   Enter whatever policy name you want
    
-   Set the **Targets** to _Run user with field **ID** equal to **\[The name of your user\]**_
    
-   Set two permissions with the following information
    
    -   _Allow **Dashboard** with rules **Access** with field **ID** equal to **\[The name of your dashboard\]**_
        
    -   _Allow **Device** with rules **Blueprint Access** with field **Tag** equal to **can\_create** : **actions**_
        

![](./images/creating-actions-from-a-dashboard/cdd1qzdOCTvXV1RIXeJ0i7tQ62o.png)

_You'll need to create a policy with the following information_

With all of that done, your end-users should fully be able to access that dashboard and use their own devices to easily create Actions! Following the steps that we've gone through here, there's a lot of customization available to you as the developer so that no matter your application needs, you'll be able to meet them!

[llms.txt](https://tago.io/llms.txt)
