Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

creating a chat/shopping assistance bot

raza19raza19 Veteran

i want to create a bot (based on chatgpt i guess) that caters to customers of a website.

i am ready to provide a feed xml or csv file containing database of all products in my store. I want gpt to answer questions related to that database e.g. if a customer says he wants to see red cups of ziga brand, i want chatgpt to return sku(s) of the closest match. I have worked with chatgpt's api for text and image generation but I am confused in how I can maintain a user session so chatgpt is aware of customer's previous conversation and also maybe learns from old conversations.

I have thought about making one large prompt with all product data and instructing chatgpt to answer a question but I can't realistically keep appending my huge catalog and user's previous msgs to every prompt :s I

How can I build a bot using e.g. chatgpt so that it continues to learn from customer interaction and gets updated with freshest stock data using a feed url.

Comments

  • ArkasArkas Member, Retired Moderator

    @raza19 said: How can I build a bot using e.g. chatgpt so that it continues to learn from customer interaction and gets updated with freshest stock data using a feed url.

    Have you tried asking ChatGPT?

  • raza19raza19 Veteran

    @Arkas said:

    @raza19 said: How can I build a bot using e.g. chatgpt so that it continues to learn from customer interaction and gets updated with freshest stock data using a feed url.

    Have you tried asking ChatGPT?

    u think i didn't ? chatgpt is not that smart yet. it just throws nonsensical suggestions where it doesn't address the main issue of learning from past conversations, maintaining a session and loading product data.

  • xxslxxsl Member, LIR

    @raza19

    You need some tricks like RAG to sideload custom data into ChatGPT, and the way maintaining a session or even memories should be the similar idea.

    I'm glad to help deeply if you need.

    Thanked by 1raza19
  • raza19raza19 Veteran

    @xxsl said:
    @raza19

    You need some tricks like RAG to sideload custom data into ChatGPT, and the way maintaining a session or even memories should be the similar idea.

    I'm glad to help deeply if you need.

    This is exactly what I am after. U have pointed me in the right direction ie RAG. I am basically working on a whatsapp api bot and instead of a conventional catalog, we have decided to use a more conversational style of showing products to clients & also bcoz for some weird reason whatsapp api doesn't offer sets like it does for whatsapp business app :s

    Nevertheless, I am gonna start digging at this. Some initial googling is pointing me towards openai embeddings.

    Thanked by 1xxsl
  • kevindskevinds Member, LIR

    That sounds like the normal search that online stores have...

    From UI perspective, please do not add a floating chat icon begging to be interacted with...

    I've already started to write custom uBlock rules to block them on websites.

    Thanked by 1yoursunny
  • raza19raza19 Veteran

    @kevinds said:
    That sounds like the normal search that online stores have...

    From UI perspective, please do not add a floating chat icon begging to be interacted with...

    I've already started to write custom uBlock rules to block them on websites.

    like i wrote above this is more of a solution for whatsapp api & for that it would be great. Imagine being able to talk with a bot in any language known to man and getting your desired products from the inventory feed or querying status of your order, etc all on whatsapp. I know people are doing this through menus and if this bot thing wud be a lot of work I too wud revert to menus I guess.

Sign In or Register to comment.