Smart Values in automation message
Asked by Selina Soo:

Hi,

Trying to use test out using the smart values in my email automation process but I can't even get it to output my space name! In my automation I have tried "{{space.name}}" using this guide: <https://support.atlassian.com/cloud-automation/docs/smart-values-in-confluence-automation/>

When I do this nothing is outputted.

Am I doing something wrong?


Answers:
author: Valerie Knapp
body: Hi [@Selina Soo](/t5/user/viewprofilepage/user-id/5484252) , welcome to the Atlassian Community and thanks for your question.

Please can you post the rule you are running so we can see a bit better what you are trying to do? An anonymised version is fine.

Cheers

comments: author: Selina Soo
body: [@Valerie Knapp](/t5/user/viewprofilepage/user-id/4929946) It's just a basic email automation that should just output the space name right now - I had other content in there but I couldn't get it to work so I stripped it away.![confluence.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/320609i2A34FBE68B5F856B/image-size/large?v=v2&px=999 "confluence.PNG")![confluence email.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/320608iB6EB7180FD4A21C9/image-size/large?v=v2&px=999 "confluence email.PNG")


author: Valerie Knapp
body: Hi [@Selina Soo](/t5/user/viewprofilepage/user-id/5484252) , thanks for your feedback.

The issue isn't the syntax, you will need to use a trigger that gives some indication for which Space name you want to show here, like one of these

![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/320610iCBE6CDC92EA65B16/image-size/large?v=v2&px=999 "image.png")

As it appears, you have a rule that is being triggered every 10 minutes. If you have a rule, instead, that is called when a Page is published, it should be possible to retrieve the name of the Space for that specific page, if that makes sense. Please can you test this with another trigger?

Cheers


author: Selina Soo
body: Ah I see I've been able to get to work now when I manually trigger the page. Thank you!

I am trying to automate a kind of "monthly lookback" on updates to the space into an email format. Is there a way that I can set one up using this automation method? Unless I manually trigger this at the end of them month each time on the main space..?**(Update: just saw I can't put an automation on the main space page)** But we want to have a breakdown of what pages have changed under a space from the month so we need to customise the email but looking at the smart values I don't think it has that capability..?

[@Valerie Knapp](/t5/user/viewprofilepage/user-id/4929946) Also, I'm trying out the {{page.aiSummary}} but nothing seems to output?


author: Selina Soo
body: Does that mean I can't do an automation on a space?


author: Valerie Knapp
body: Hi [@Selina Soo](/t5/user/viewprofilepage/user-id/5484252) , thanks for your feedback.

There is a trigger, for example, for when a Space is created

![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/321113i2E92AAA24728B935/image-size/large?v=v2&px=999 "image.png")

So it depends on what you want to achieve.

Have you tried searching in here, in the templates? or using the 'show me an example' button?

![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/321114i70431960308003C3/image-size/large?v=v2&px=999 "image.png")

These should assist you in formulating the way to ask automation to do what you want.

Hope this helps

Cheers


Tags: cloud

confluence-cloud