# Prompt constructor for ML app

**URL:** <https://community.glideapps.com/t/prompt-constructor-for-ml-app/58551>\
**Category:** Ask for Help\
**Created:** [February 27, 2023, 9:46pm UTC](https://community.glideapps.com/t/prompt-constructor-for-ml-app/58551 "2023-02-27T21:46:36Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Peter\_Iglaev](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/peter_iglaev/32/55016_2.png) [@Peter\_Iglaev](https://community.glideapps.com/u/Peter_Iglaev)\
**Post date:** [February 27, 2023, 9:46pm UTC](https://community.glideapps.com/t/prompt-constructor-for-ml-app/58551/1 "2023-02-27T21:46:36Z")

</div>

Hey, working on some ML app.

Idea is to create buttons with useful words for prompt as tip for customer(e.g. “gothic style”, “colourful”, etc)

Above will be the wide Text Entry where customer also can type his prompt and by clicking the buttons the text will be added to prompt.

How to implement that?  
Add text to Text Entry by clicking the buttons.

I tried to use Set column values, but it really Set the values and can’t update…  
Might it could be implemented like Set Column Value, prompt = ${prompt} + “\_” + ${button\_label}… smith like that

---

<div class="post-metadata">

**Author:** ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)\
**Post date:** [February 27, 2023, 10:12pm UTC](https://community.glideapps.com/t/prompt-constructor-for-ml-app/58551/2 "2023-02-27T22:12:16Z")

</div>

You won’t be able to do it inside of a form, but if you are on a detail screen, then you kind of can. What you would do is have a column to hold the prompt, and another column to hold the label. Then you will need a custom action on each button. The first action will set the appropriate label in the label column based on the button that was pressed. The next action would set the prompt column based on the template column value. You may or may not need a Wait action in between those two actions. I’m thinking not, but keep it in mind if the template doesn’t get set fast enough before the second action overwrites the prompt column.

---

<div class="post-metadata">

**Author:** ![Gregorio\_Martinez](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/gregorio_martinez/32/7299_2.png) [@Gregorio\_Martinez](https://community.glideapps.com/u/Gregorio_Martinez)\
**Post date:** [March 16, 2023, 11:05pm UTC](https://community.glideapps.com/t/prompt-constructor-for-ml-app/58551/3 "2023-03-16T23:05:14Z")

</div>

How is it going with the Prompt Constructor?  
I want to create something like this for my Midjourney prompts.  
There is a site that does it perfectly but I want more styles, cameras, etc.:

> **[IMI Prompt: Midjourney Prompt Builder](https://imiprompt.com/builder)**
>
> Create prompts easily for Midjourney with IMI Prompt. Add text, images, filters, and change parameters. Note that IMI Prompt supports Midjourney v4.

---

<div class="post-metadata">

**Author:** ![Uzo](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/uzo/32/22639_2.png) [@Uzo](https://community.glideapps.com/u/Uzo)\
**Post date:** [March 16, 2023, 11:15pm UTC](https://community.glideapps.com/t/prompt-constructor-for-ml-app/58551/4 "2023-03-16T23:15:17Z")

</div>

I’m not sure why you guys make it complicated… maybe I do not understand the purpose…  
But it should be easy to use text entry and template column to add text entry to a base text… and button to replace base text and clear text entry.
