I’m currently developing an apartment rental website on WordPress and am in need of some guidance. I plan to integrate a chatbot onto the site, ideally using the Assistant API. This would enable the chatbot to have a knowledge base, fed through a PDF document detailing all the specifics of the apartments.
The challenge is, I’d also like the chatbot to automatically check a URL daily to update itself with the availability of each apartment, thereby providing the most accurate advice to users. I’m concerned that such “dynamic” knowledge updating isn’t possible with the Assistant API.
Here are my two questions:
Does anyone have suggestions for implementing a system that allows for “dynamic” knowledge updating (possibly via a URL)?
Are there any WordPress plugins available that integrate with the “Assistant API”? I haven’t found any as of yet.
As zenz said, you could use a cron job for this. You could have a script that grabs the content from the URL and stores in a database each day (langchain has document loaders for this and there are plenty web-scraping packages out there). Then you can pass this data into your model in the prompt (via Assistants API or any other model). Not sure about the second one!