agentcoinorg / fundpublicgoods

An AI agent to streamline resource allocation.
https://fundpublicgoods.ai
MIT License
4 stars 2 forks source link

Feature: Adding routing of new queries to a URL query param #160

Open rihp opened 8 months ago

rihp commented 8 months ago

For example:

Given an url witha query param like the one below: https://fundpublicgoods.ai/?strategy="space exploration"

Fund public goods should create a new strategy query with the strategy "space exploration"

This is very useful at the moment of integrating other systems with FPG


Development plan by @nerfZael

Landing page: read query params or path params from url on load do the functionality that our "prompt send button" does (makes post request and redirects to strategy page) The landing page could show a message like "generating your strategy"


Resources by @cbrzn https://github.com/polywrap/fund-public-goods-ai/blob/dev/web/components/PromptInput.tsx https://nextjs.org/docs/app/api-reference/functions/use-search-params

orishim commented 8 months ago

This could be utilized in a Farcaster frame to open up the app to a new query

dOrgJelli commented 8 months ago

This can definitely be done pretty easily