Pickaxe remembering data from Action

Hey all!

I’ve built a nice bot, that can retrieve data from airtable and check if its the correct person requesting the data.

But, when the users tries to engage with the data, i.e. asking questions about it, my pickaxe “forgot” the data that it just retrieved. Any tips on how my bot can save this data during the chat, so it can be used as a source?

Many thx!

1 Like

Not sure if this will work, because I’m still learning how actions work, but if you tell the prompt to ingest the information from the spreadsheet it may work.

Alternatively, you might need to call two actions — one to verify and the second to read the data. Someone more experienced with actions may be able to point out how I’m missing something though…

If it prints the data in the conversation than it is part of the conversation record and it can reference it.

1 Like

What if you don’t want the data printed in the conversation but still want it to interact or reference the data retrieved? All of the data may not belong in the conversation

It only remembers what’s in the conversation. Here’s an example that might convey how the process works. Let’s use the example of an Action that taps into a stock market API.

  • When the user asks about APPL stock, the action is triggered, it returns a bunch a bunch of information about the stock, most likely in a JSON object with like 50 properties.

  • Your Pickaxe looks at that data, then uses it to answer the question: “At $230.57 a share with a 35 Price-to-Earnings ratio, Apple is likely overvalued.”

  • For the rest of the conversation, your Pickaxe will only remember the answer it gave that includes the price and PE ratio. The JSON object with tons of data is gone now. The Pickaxe only saw it for a brief moment before it answered.

I get it, but is there a way to save that data somewhere so that it can recall it without having to make another api request for the exact same info?

Actually, yes, there is absolutely a way for you to get the bot to remember things that aren’t shown to the user. I talked about it here in this video.

You have to tell the action (in the print statement) to include the data you want surrounded by html comment tags, which you can see here (I tried to write them in, but this platform also doesn’t render them).

If you have it surround data with those, the rest of the conversation the bot will know about the info, but the user won’t see it.

3 Likes