Voiceflow PartnersVPVoiceflow Partners
Powered by
endless-jadeE
Voiceflow Partners•3y ago•
3 replies
endless-jade

Need to use fetched data from a function block to respond with AI

So, I'm a complete noob in Voiceflow with zero coding knowledge and experience.

Here's what I'm trying to achieve: I want a chatbot that can pull data from a Google Sheets file and answer my queries. For example, if it's a spreadsheet about the status of my different projects with columns, like client name, tasks, payment status, due date, etc., I might ask "what projects are pending?" and it fetches the data from the spreadsheets, understands the data and then provides an appropriate response.

Here's the progress I've made so far: Using the "Pull from Google Sheets" function from Voiceflow's website, I am able to fetch the sheets data into a JSON text. The function has two paths - Succeeded and Failed. I have connected an AI response block with the "Succeded" path, prompting it use the fetched data to answer user query based on "last_utterance" variable. AND IT ACTUALLY WORKED.

However, when I woke up next morning, it wasn't working anymore. There doesn't seem to be a problem with the functions block as I have tested it and it's returning valid response. The problem seems to be with AI response block as it's not able utilize any of the fetched data. Seems like it isn't aware of the data. However, it worked fine before. Am I missing any steps? Any help would be really appreciated.
image.png
image.png
image.png
image.png
image.png
Voiceflow Partners banner
Voiceflow PartnersJoin
Exclusive community for Voiceflow Solutions Providers & Content Creators.
13,076Members
Resources
Was this page helpful?

Similar Threads

Recent Announcements
Recent Announcements
jacklyn

# Let your agents search the web 🔎 Hey everyone! We just released the web search tool for the agent step! Your agents can now automatically search the web for information, letting your agent supplement the LLM's knowledge and the data in its knowledge base with live, up-to-date information. Plus.... * You can restrict searches to specific domains, so your agent only searches sites that you own * This is a tool, so you remain in control of when the agent searches the web * Results are automatically summarized in a way that your agent can automatically understand Under the hood, we're using OpenAI's web search API. Give it a try, and let us know what you think! https://docs.voiceflow.com/changelog/native-web-search-tool

jacklyn · 4mo ago

jacklyn

jacklynbiggin's Thread

jacklyn · 4mo ago

hurt-tomato

connor_maclean's Thread

hurt-tomato · 4mo ago

Similar Threads

How to use Secrets in API tool from AI agent (not API block)
gapuyyyGgapuyyy / ❓┃ask-a-question
6mo ago
API output to Function Block
specific-silverSspecific-silver / ❓┃ask-a-question
3y ago
Function Block API Limitations
SwitchSSwitch / ❓┃ask-a-question
6mo ago
Perplexity AI function
significant-graySsignificant-gray / ❓┃ask-a-question
2y ago