The word of recall spell (PHB, p. 289) says:
You must designate a sanctuary by casting this spell within a location, such as a temple, dedicated to or strongly linked to your deity. If you attempt to cast the spell in this manner in an area that isn’t dedicated to your deity, the spell has no effect.
The temple of the gods spell (XGtE, p. 167) says:
You cause a temple to shimmer into existence on ground you can see within range. […] The temple remains until the spell ends [which is 24 hours]. It is dedicated to whatever god, pantheon or philosophy is represented by the holy symbol used in the casting.
Casting this spell on the same spot every day for a year makes this effect permanent.
My plan is, cast temple of the gods (it takes one hour to cast, but it’s 24 hour countdown won’t come into effect until after I’ve finished casting the spell), then cast word of recall (takes only one action) within the temple. That’s my 6th and 7th level spell slots gone (I’m currently 14th level, so that’s all I’ve got above 5th).
Then long rest, probably within the temple (so that’s 8 hours of the 24 hours that the temple will exist for), then go on a dangerous mission. So long as the mission doesn’t take more than ~16 hours (or it becomes clear after 16 hours that it’s no longer dangerous), then I should be able to cast word of recall (assuming I reserve either my 6th or 7th level slot for it) to get my and my party out of there if anything goes horribly wrong.
Is there a flaw in my plan? Is there something about temple of the gods that means it wouldn’t be a valid target for word of recall?
I included the part of the temples of the gods quote about casting it every day for a year to make the temple permanent, since I wondered if the temporary nature of a temple I just conjured into existence that will only remain there for 24 hours would somehow interfere with word of recall, but I’m hoping that a temple, no matter how temporary or how it came into being, is still a temple as far as word of recall is concerned…