filip-michalsky / SalesGPT

Context-aware AI Sales Agent to automate sales outreach.

Home Page:https://salesgpt.vercel.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ability to call tools at End

ranjandsingh opened this issue · comments

Any option to use tools on let's say the last stage to save the response or parse relevant information to DB

@ranjandsingh yes, it's been on the TODO list for a while. I will try to push out as early as I can. Make sure to put this repo on watch mode. If you would be open to contribute, please let me know :)

@filip-michalsky which API or tool you used for cold calling.
when you will update the codebase demo you shared?

@filip-michalsky I'm down to add this option but there are few ways we can implement it

  • Adding another stage and calling save on last stage
  • or adding an Agent instead of chain for second chain
  • or even in the post process of the conversation like end conversation and detecting if user intend to save

@Bilal-irfan thanks for the question - I am going to push an example with calling an API I am building which complements SalesGPT agents for cold-calling soon. Will need to start a beta testers list as I can't support high traffic yet. Would love to get your feedback.

@ranjandsingh thanks for your offer to help! Adding tools to the AI Sales Agent toolkit is a high priority item, I just haven't had time to work on it yet. What do you mean by the intent to save?

Rough API sketch (idea, subject to feedback):

  1. User input
  2. Stage analyzer outputs which stage of the sales conversation we are at.
    (optional) - new config, we init the sales agent with a different prompt based on the stage. Right now, the sales agent has a static prompt.
  3. Sales Agent decides what to do. It can look up product information in a knowledge base. It can send an email, or text, it can initiate a phone call, search the internet, and output a response to the user.
  4. Agent Critic - does the output match the stage and does it match the product knowledge base? if not, give feedback and re-try
  5. User output.

Hi filip @filip-michalsky , really appreciate your work, the only problem of this is turn the sale-gpt become an independent agents - plan and execute (independently from human on decide what to do), from What I see this is just an action agents or a simple chain - from langchain, so i have an idea that we add the conversation analyzer and conversation chain become a part of tools to pass into plan-and-execute agent. So could we start this discuss about my idea and talk about how we implement and try it as a raw version on python?

commented

@filip-michalsky I'm learning how to use tools by adding tools to the Sales Agent. I see in the examples they call initialize_agent which returns an AgentExecutor. Would this work by returning an AgentExecutor from the from_llm method or do I have to create an OpenAI spec to process (https://python.langchain.com/docs/modules/chains/additional/openapi_openai)

commented

Hi Filip, I am testing your salesgpt code and have a doubt. Where do I add the number to receive the call and do I have to set a call duration time?

@Alex-Poon @thalex @ranjandsingh @Bilal-irfan @tgbaoo Agent example is up, check it out! Will close this issue soon if you don't have any objections.

well, this is a good option and value add to the current System love to see it. just one question does it supports multiple tools or just one ?

@ranjandsingh yessir, you can add as many tools as you want, you have to just change the get_tools() function

I guess you have a good point, it's not now easily changeable by the user since it's not configurable from the high-level API.

We can add it as a TODO to allow a user to specify their own tools.

Hello, where is the example code of cold calling

commented

Does anyone have a working demo of multi-tools? seems to me its very bad at telling the user what tools it has available, any ideas on how to modify the prompt to get that capacity?

@avyaymc It's on todo for now you might need to modify the agent code to allow multiple tools currently only accepting one

@avyaymc adding this to TODO - open for someone to contribute

any news?

Hi, I am seeing that the code is currently not working as an langchain agent with tools on streaming response mode right now? If yes, i am developing some structure for that, hope to contribute to this repo

By the way, we also need to test the benchmark of the retrieval document due to specific document's field and also control the way the retrieval come to the prompt to generate the answer by the langchain agent also right? @filip-michalsky