# AI expansion or random selection

**URL:** <https://community.textexpander.com/t/ai-expansion-or-random-selection/212>\
**Category:** Have a question?\
**Created:** [May 8, 2025, 1:09pm UTC](https://community.textexpander.com/t/ai-expansion-or-random-selection/212 "2025-05-08T13:09:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![FareedKhan](https://avatars.discourse-cdn.com/v4/letter/f/b4bc9f/32.png) [@FareedKhan](https://community.textexpander.com/u/FareedKhan)\
**Post date:** [May 8, 2025, 1:09pm UTC](https://community.textexpander.com/t/ai-expansion-or-random-selection/212/1 "2025-05-08T13:09:27Z")

</div>

Hello

I have an expansion to “how are you”. I don’t want the same response each time, that I am good or great or wonderful. How can I add a random selector that would pick a word from a list of values, or use AI?

---

<div class="post-metadata">

**Author:** ![josh.centers](https://sea3.discourse-cdn.com/textexpander/user_avatar/community.textexpander.com/josh.centers/32/8_2.png) [@josh.centers](https://community.textexpander.com/u/josh.centers)\
**Post date:** [May 8, 2025, 2:38pm UTC](https://community.textexpander.com/t/ai-expansion-or-random-selection/212/2 "2025-05-08T14:38:15Z")

</div>

Hi Fareed, there are a few ways you could do this:

1. Use Optional Sections to create a checklist of response options. I just posted a tip for [using ChatGPT to create checklists](https://community.textexpander.com/t/use-chatgpt-to-generate-textexpander-checklists/213) that you may find helpful.
2. Use JavaScript to create a Snippet that randomly chooses from a fixed set of responses. For an example, you can subscribe to my [Random No Public Group](https://snippets.textexpander.com/group/c7c18ab26b21e5967a10aa069d6874ab), which you can copy and customize.
3. You could also create a JavaScript Snippet to automatically change the response based on something like time of day. @macfixer [has an example](https://community.textexpander.com/t/your-most-surprising-use-for-textexpander/95/15).

Do any of these offer helpful ideas?
