HELP WITH CV EXTRACTION AND ZAPIER
# 🤝help
f
I need assistance with zapier and botpress integration. I'm currently building a recruitment form which has a bunch of questions for the client to answer. I want to integrate a feature in which the client has the option to upload a CV , then AI extracts relevant info from the CV, and fills the spaces in the Google sheet corresponding to those questions. Since a CV will not have answers to all questions, the chatbot then should be able to ask whatever remains unanswered to the client. Please let me know if you're able to figure this out.
a
Hey @future-lifeguard-12317 there's not a feature in Botpress that lets users upload documents. If your bot is in a website, you could try adding the CV upload and analysis in your webpage, and then send the results to the bot in a custom trigger?
f
I can make the user upload it to docparser and extract it from there
@acceptable-kangaroo-64719
But how to use the custom trigge to return values to botpress?
also, some questions might not get answered using the CV, is there a way to automatically jump the conversation to the remaining questions without needing to answer all of them
a
I've never used docparser so I don't know how it makes its information available. But if you get the information on your website, you can send it to the bot in a payload like this example https://jsfiddle.net/GordyNumberOne/pbhf3L0d/120/ check out the form submission part. Capture cards have an advanced config feature of 'skip if variable is already filled' where the bot won't ask a question if its output variable has a value in it. So, assuming you have a way of extracting the user's name from the CV and sending it to your bot, if that info is saved to the right workflow variable this quesiton won't be asked.

https://cdn.discordapp.com/attachments/1139179530800599041/1139229259869737210/image.png

f
I am not able to understand the fiddle. Could you guide me through it? I need a way to be able to store data into existing variables from an outside source
@acceptable-kangaroo-64719
a
I can't help you with that part because I don't know what kind of outside service you're using to get your data. Once you have that data in your webpage, you can send it to the bot like this:
Copy code
js
  window.botpressWebChat.sendPayload({ type:'text', text:"Here is my form data", payload:{
          key1:value1,
          key2: value2
          }
        })
Then inside your bot, you can save them to a workflow variable like this:
Copy code
js
workflow.key1 = event.payload.payload.key1
workflow.key2 = event.payload.payload.key2
f
Error pops up

https://cdn.discordapp.com/attachments/1139179530800599041/1139244917017817088/Screenshot_38.png

https://cdn.discordapp.com/attachments/1139179530800599041/1139244917491769396/Screenshot_39.png

I was just testing the functionality via zapier
@acceptable-kangaroo-64719
a
you have to run that code from a webpage. zapier runs code server-side, there is no
window
object to run
window.botpressWebChat
functions from on Zapier
f
Oh okay
What should be the code to make it run in zapier?
@acceptable-kangaroo-64719
d
Hey Muhammed - I am actually working on a very similar project for an interview bot, and would also like to ingest a resume to be able to reference it in an interview. How far along are you in building this? And have you figured out the resume part? I would be happy to share notes, or share our workflow as we build it.
f
@delightful-sandwich-12539 Sure! I would love to chat with you
d
Hey Muhammed. Great, happy to share notes on this idea. I am the executive sponsor of this project, not really the most technical. But, what I love about BotPress is even non-programmers can produce a great bot. Anyway, I would be happy to share notes with you on this, share our BotPress design etc and in turn would love to see what you are building also. I am guessing we could both save each other some time.
2 Views