# Workaround to trigger AI prompt?

**URL:** <https://community.fibery.io/t/workaround-to-trigger-ai-prompt/4277>\
**Category:** Ideas & Features\
**Tags:** automations\
**Created:** [April 7, 2023, 12:25pm UTC](https://community.fibery.io/t/workaround-to-trigger-ai-prompt/4277 "2023-04-07T12:25:35Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![YvetteLans](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/yvettelans/32/6101_2.png) [@YvetteLans](https://community.fibery.io/u/YvetteLans)\
**Post date:** [April 7, 2023, 12:25pm UTC](https://community.fibery.io/t/workaround-to-trigger-ai-prompt/4277/1 "2023-04-07T12:25:35Z")

</div>

Hi,

- When you save a lot of AI commands, the list can be quite long.
- It’s currently not easy to change commands.
- My commands are quite long.

So I’m thinking of the following.

What if I make a AI prompt database where I include the prompt.

Then if a user links the AI prompt to an entity, trigger an automation and put the output in the AI output field of the entity.

So for my use case

- Content item = LinkedIn post
- AI prompt template = rewrite LinkedIn post to a Instagram post
- Desired outcome: place AI output in the AI output field

Database

 ![image](https://us1.discourse-cdn.com/flex020/uploads/fibery/original/2X/d/dcc7b15c663bd6cae37ce4cd90e00bff57988bac.png)

I’ve made quite a large prompt and I’ve included “{{Content.Omschrijving}}” in that prompt.

 ![image](https://us1.discourse-cdn.com/flex020/uploads/fibery/original/2X/4/46446b4b5f9af1b8e26efa89b1e533a8742b5955.png)

With this automation I was hoping to insert the {{Content.Omschrijving}} into the AI prompt. So that the automation can place the ‘AI output’ in the ‘AI ouput field’

 ![image](https://us1.discourse-cdn.com/flex020/uploads/fibery/original/2X/4/4449881cdf221b739562070f7f4ce0c707a0fd3a.png)

The automation is working; but the {{Content.Omschrijving}} is not inserted in the AI prompt. Therefor the reponse is

 ![image](https://us1.discourse-cdn.com/flex020/uploads/fibery/original/2X/0/0a75530caf00839d7d01101b0e133c2f22715ae5.png)

It’s not working and I can understand why it’s not working but can’t solve it without ChrisGPT or somebody else 🥲

Maybe it’s not possible at all. But I thought: let’s give it a try 🙂

---

<div class="post-metadata">

**Author:** ![Chr1sG](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/chr1sg/32/3941_2.png) [@Chr1sG](https://community.fibery.io/u/Chr1sG)\
**Post date:** [April 8, 2023, 1:19pm UTC](https://community.fibery.io/t/workaround-to-trigger-ai-prompt/4277/2 "2023-04-08T13:19:48Z")

</div>

Have you tried the following in the automation action markdown box:

```auto
[ai temperature=0.5 maxTokens=4000]
{{AI prompt.Omschrijving}}
{{Omschrijving}}
"""
[/ai]

```

coupled with removing the

```auto
{{Content.Omschrijving}}
"""

```

lines from the AI prompt’s rich text field?

---

<div class="post-metadata">

**Author:** ![YvetteLans](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/yvettelans/32/6101_2.png) [@YvetteLans](https://community.fibery.io/u/YvetteLans)\
**Post date:** [April 10, 2023, 7:53am UTC](https://community.fibery.io/t/workaround-to-trigger-ai-prompt/4277/3 "2023-04-10T07:53:59Z")

</div>

I just did, but it seems that the AI prompt now is ignored and only the Content.Omschrijving field is processed.

- I’ve created a prompt to write a summary (since that’s a more simple way for testing)
- The AI output seems to ignore the prompt (‘write summary’). Instead it answers the question that was part of the content (“Tell me: what is your favorite productive procrastination?”)

_As an AI language model, I do not procrastinate, but I can imagine that writing down tasks and attending training sessions can be helpful. Another useful activity might be meditating or taking a walk to refresh and relax the mind before starting difficult tasks. It is important to remember that sometimes procrastination is inevitable and that it is okay to give yourself some space to recharge before moving forward._

When I start with {{Omschrijving}} and end with {{AI prompt.Omschrijving}} i get the same result. Also tested with _Input_ vs. {{input}}.

@ChrisG If you want, you can try it yourself in [this database](https://acceleright.fibery.io/fibery/space/Content_Hub/database/AI_prompts). You can use the ‘Test content for AI prompt’ to test the prompt.

 ![image](https://us1.discourse-cdn.com/flex020/uploads/fibery/original/2X/1/1041370218f8c4173633fd3d118185a729e64a1e.png)

The automation is in ‘Content’ database.

---

<div class="post-metadata">

**Author:** ![robinlovesyou](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/robinlovesyou/32/9399_2.png) [@robinlovesyou](https://community.fibery.io/u/robinlovesyou)\
**Post date:** [May 21, 2024, 10:03pm UTC](https://community.fibery.io/t/workaround-to-trigger-ai-prompt/4277/4 "2024-05-21T22:03:58Z")

</div>

Very interesting approach, Yvette.

I know this is already a year ago, but I am highly interested, if you got this to work properly.  
Would you mind sharing?

---

<div class="post-metadata">

**Author:** ![YvetteLans](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/yvettelans/32/6101_2.png) [@YvetteLans](https://community.fibery.io/u/YvetteLans)\
**Post date:** [May 22, 2024, 7:23am UTC](https://community.fibery.io/t/workaround-to-trigger-ai-prompt/4277/5 "2024-05-22T07:23:25Z")

</div>

Hi Robin, I set it up as a quick test at the time but I haven’t finished this piece yet due to other priorities. Later it may be relevant to my workflows though. When I have a working version, I will share it here 🙂
