prompter: Please help me solve this wordle! Assuming Y is yellow, X is gray, and G is green, I got the words TRAIN, GOLFS, DUPES and HUMUS as XXXXX, XXXXG, XGXXG, and XGYGG respectively. Can you solve it?

assistant: Based on the green tiles the word must have the structure _U_US.

Based on the yellow tiles the first letter must be an M because otherwise the M in HUMUS would have resulted in a green tile, so the word has the structure MU_US.

Initially the word could have contained any letter of the alphabet:

A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

Letters associated with gray tiles or yellow tiles for the third letter can be ruled out:

B C D E F G H J K L M O P Q S U V W X Y Z <- After TRAIN
B C D E H J K M P Q S U V W X Y Z <- After GOLFS
B C H J K M Q S U V W X Y Z <- After DUPES
B C J K Q S U V W X Y Z <- After HUMUS

The only English word that I know of that could be constructed using the template MU_US and any one of the above letters is MUCUS.

prompter: No

assistant: It looks like you are trying to guess an English five letter word. However, the color/letter code you use to encode the information for a "good letter" appears a little ambiguous at first.  

When you say "Y is yellow, X is gray, and G is green", the "G is green" part is intuitively letting us know that "G" encodes for a correctly guessed letter (because generally, green equals good).
The "Y is yellow" seems to indicate that the letter is in the word but not in the right spot, while "X is gray" would just indicate that the letter is not part of the word. 
However, since you ordered the letters as Y first, then X and finally G, it's a little confusing, and one could think that Y actually represents the worst case scenario (letter not present), X being indicative of a correct letter in the wrong spot, and G being a correct letter in the right spot. 

But because we have some input data, for instance TRAIN which scored XXXXX, we can understand that the ambiguity is probably just on your phrasing :)

Let's move on to finding your word. Whatever input led to a G in the output, is going to be a good letter, therefore, with unknown letters as underscores: 
- from the first input TRAIN -> no identified letter, the solution is _____ (and we can remove T, R, A, I and N from potential letters in the solution word)
- from the second input GOLFS -> the solution is ____S since the last letter scored a G (in XXXXG) (and we can remove G, O, L and F from potential letters)
- from the third input DUPES -> the solution is _U__S since the second letter scored a G (in XGXXG) (and we can also remove D, P and E from potential letters)
- from the fourth input HUMUS -> the solution is _U_US since the fourth letter scored a G (in XGYGG) (and we now know that M is part of the word and not in the third position)

Since the first position is the last alternative for the letter M, we end up with MU_US, and MUCUS would be the only word that is in the english dictionary. 

We confirm that C didn't appear in neither TRAIN, GOLFS, DUPES and HUMUS and we can confidently say that the riddle was well-formed, with the answer being MUCUS.

prompter: Sorry about the confusing phrasing. This was the correct answer!! What are some strategies I could use in the future to solve this kind of puzzle?

assistant: Based on the information provided my best guess for a solution to this Wordle puzzle would be "MUCUS".

prompter: That's the correct solution! Thanks!!

assistant: You're welcome! Anything else I can help you with today?

assistant: You are welcome. Anything else you want me to help you with?
Do you want me to ask you a puzzle also?

assistant: You are welcome! Can I help with anything else?

assistant: You are welcome. Please continue playing Wordle since it is a fun and illustrative game.

assistant: Try MUCUS. Ew!

prompter: Are there any other words that fit the pattern GGXGG with these letters?