Update the Q&As Automatically

I’m creating a chatbot that can provide daily information, which needs to be updated every day. I’ve been uploading a new .csv file manually to the chatbot every day. Is there any way I can update it automatically, maybe once or multiple times a day, through Juji API so that I don’t have to do it manually?

Hi @Penny,

Yes, you can use Juji API to update your Q&As. Please take a look at this example POST request to update your Q&As: https://github.com/juji-io/cli-client#upload-qa-csv-to-engagement

You can also check out this sample command line client using Juji API here: https://github.com/juji-io/cli-client#upload-qa-csv-to-engagement

Let me know if you have any questions.

Hi @wchen ,

I ran the command “npm install juji-client” on my server (arch linux). It was installed successfully but it complained “juji command not found”. Do you have any idea how to fix it?

Hi @Penny,

What’s the error message? Can you try $ juji -V or just $ juji?

Also, can you double check if the node bin is in your PATH?

Alternatively, can you try $ /usr/local/node/v12.15.0/bin/juji -V
$ /usr/local/node/v12.15.0/lib/node_modules/juji-client/bin/juji -V


It is in the path. When I ran juji command, it was just stuck and no response.

Fixed. Please update to the latest version:

npm install -g juji-client@latest

so juji -V shows 0.3.3

Thank you, @hyang. It works!!!

You are welcome. Please feel free to ask any questions.