comoyomalove
comoyomaloveā€¢13mo ago

ai town

Dear community, I am not a developer by any means. I am a game designer with a strong interest in AI. I've been trying to install and run AI Town. Here is where I am lost: After making my Convex account and connected it to my local machine which already has AI Town repo cloned with .env.local file with API keys from Clerk, should I NOT be able to see a AI Town project in my Convex account? I am trying to do the installation as per the instructions on Youtube videos and the documentation on GitHub. In the videos, it is mentioned that it should be visible and I am super confused. Any guidance will be appreciated. Many thanks!
9 Replies
Indy
Indyā€¢13mo ago
Have you run npx convex dev in the commnd line? That command will guide you through connecting your code to your account and creating the project in your Convex account.
comoyomalove
comoyomaloveOPā€¢13mo ago
thanks a ton for coming for my bat signal. :)Yupp I did. At first it connected my account to my local device but then when I tried putting my keys into my Clerk account and tried again it got somehow disconnected I think. I believe the problem is somewhere between my Convex and Clerk account but its just a guess. I can share the terminal messages here after trying again if that would help.
Indy
Indyā€¢12mo ago
It'll be hard to debug this without a deeper look at the code. But do try to retrace your steps through this guide: https://docs.convex.dev/auth/clerk. It's highly possible you missed some steps. It's very common and happens to the best of us šŸ™‚ Good luck.
Michal Srb
Michal Srbā€¢12mo ago
Also if you can't figure it out based on the setup guide, use this doc: https://docs.convex.dev/auth/debug
Debugging Authentication | Convex Developer Hub
You have followed one of our authentication guides but something is not working.
comoyomalove
comoyomaloveOPā€¢12mo ago
Thank you both very much. Unf I cant get it fix. I keep getting the same error: ai-town@0.0.0 predev
convex dev --run init --until-success
āœ– You don't have access to the project with deployment cool-bullfrog-130|XYZ, as configured in CONVEX_DEPLOYMENT
Michal Srb
Michal Srbā€¢12mo ago
run npx convex dev --configure
comoyomalove
comoyomaloveOPā€¢12mo ago
I tried it before and again here is what I see: ai-town % npx convex dev --configure ? What would you like to configure? an existing project ? Configure project Naz's Town (naz-s-town)? Yes āœ” Provisioned dev deployment and saved its name as CONVEX_DEPLOYMENT to .env.local Write your Convex functions in convex/ Give us feedback at https://convex.dev/community or support@convex.dev āœ– Schema validation failed Document with ID "j570ccv9jtqzg0zxfr5zdcv4wn6m9jmn" in table "messages" does not match the schema: Object is missing the required field conversationId. Consider wrapping the field validator in v.optional(...) if this is expected. Object: {author: "Arya", body: "Oh cool, I need to learn more about that!"} Validator: v.object({author: v.string(), conversationId: v.string(), messageUuid: v.string(), text: v.string(), worldId: v.optional(v.id("worlds"))})
Discord
Join the Convex Community Discord Server!
Join the Convex Discord! Explore Convex, the fullstack TypeScript platform for developers and startup founders. | 3240 members
Michal Srb
Michal Srbā€¢12mo ago
Delete the document from your dashboard (npx convex dashboard, open the "messages" table, and clear it or filter for the ID)
comoyomalove
comoyomaloveOPā€¢12mo ago
Dear all I am happy to inform with a help of a develeoper friend I was able to fix it my problem and now I am the proud goddess of my own ai-town. Here is the problem I had: .env.local file was none existent for me and I made one with all the steps followed as instructed however it still did not work.. Once I made a new project on Convex, I automatically had a .env.local file but it didnt again work. I had to put CLERK_ISSUER_URL then it started working. Here is my next question: where/how can I tailor my ai citizens bios/memories etc. How can I interact with them? Is this even the right place to ask? PS: I can see their convo memories in Convex.

Did you find this page helpful?