## Steps > [!WARNING] Experimentation > This is not fully polished. Please experiment and share suggestions :) ## ChatGPT Create a new conversation with [[Dataview Assistant Prompt]] as the first message. In subsequent messages ask it to create you queries. ## Agent Install [[My Areas/Obsidian Intelligence]] plugin Create an assistant with the instructions set to [[Dataview Assistant Prompt]] Upload the following file contents to the assistant with the same file names: [[Dataview Data Commands]] [[Dataview Expressions]] [[Dataview Functions]] ## Pricing This cost does not include the pricing for assistants, which can be more if it needs to retrieve information and do internal calculations. When I ran the two query requests below to do the experiment, I ended up paying $0.04 USD. Input = $0.01 USD / 1k words Output = $0.03 USD / 1k words ### Assistant Prompt The [[Dataview Assistant Prompt]] itself is around 907 tokens: ![](https://i.imgur.com/vMWnyUB.png) So 0.0091 USD ### Unoptimized query The following query request is 53 tokens, which is 0.0005 USD: ``` Please create a query that shows all my notes with the tag `#input/videos`, and for each note show the Status, Links, Source and "Total Links" field, which you can calculate by adding the total of the file's incoming and outgoing links. ``` ![](https://i.imgur.com/5NvFBP7.png) Response looks like this which was 101 tokens ($0.003 USD): ```` Here is your Dataview query: ```dataview TABLE Status, Links, Source, (length(file.inlinks) + length(file.outlinks)) AS "Total Links" FROM #input/videos ``` This query will create a table showing the Status, Links, Source, and a calculated "Total Links" field for each note tagged with `#input/videos`. The "Total Links" field is calculated by adding the number of incoming links to the number of outgoing links for each file. ```` ![](https://i.imgur.com/vsyFlvU.png) ### Optimized query if we ask it to only respond with the query (an extra 4 tokens-ish for the instruction): ``` Please create a query that shows all my notes with the tag #input/videos, and for each note show the Status, Links, Source and "Total Links" field, which you can calculate by adding the total of the file's incoming and outgoing links. RESPOND ONLY WITH QUERY ``` We get… only the query lol ```` ```dataview TABLE Status, Links, Source, (length(file.inlinks) + length(file.outlinks)) AS "Total Links" FROM #input/videos ``` ```` Then we can reduce it to 35 tokens, $0.001 USD: ![](https://i.imgur.com/UlocnF1.png) ### Total So the total pricing is around: - 0.0091 USD - prompt input - 0.0005 USD - message input - 0.001 to 0.003 USD - output 0.016 USD for a query.