Skip to content

Commit

Permalink
update example notebook
Browse files Browse the repository at this point in the history
  • Loading branch information
Filip Michalsky committed Feb 5, 2024
1 parent 50f30d3 commit f86b368
Showing 1 changed file with 21 additions and 15 deletions.
36 changes: 21 additions & 15 deletions examples/sales_agent_with_context.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@
" 'conversation_history': 'Hello, this is Ted Lasso from Sleep Haven. How are you doing today? <END_OF_TURN>\\nUser: I am well, howe are you?<END_OF_TURN>',\n",
" 'conversation_type': 'call',\n",
" 'conversation_stage': 'Introduction: Start the conversation by introducing yourself and your company. Be polite and respectful while keeping the tone of the conversation professional. Your greeting should be welcoming. Always clarify in your greeting the reason why you are contacting the prospect.',\n",
" 'text': \"I'm doing great, thank you for asking! I'm reaching out today to see if you're interested in improving your sleep experience with a premium mattress from Sleep Haven. We offer a range of high-quality mattresses designed to provide the most comfortable and supportive sleep possible. Would you like to learn more about our products? <END_OF_TURN>\"}"
" 'text': \"I'm doing great, thank you for asking. I'm calling today to see if you're interested in achieving a better night's sleep with a premium mattress from Sleep Haven. Our mattresses are designed for ultimate comfort and support. Would you be interested in learning more about our products? <END_OF_TURN>\"}"
]
},
"execution_count": 7,
Expand Down Expand Up @@ -496,7 +496,7 @@
"Created a chunk of size 940, which is longer than the specified 10\n",
"Created a chunk of size 844, which is longer than the specified 10\n",
"Created a chunk of size 837, which is longer than the specified 10\n",
"/Users/test/Documents/extra/ml/github/salesgptvenv/lib/python3.10/site-packages/langchain_core/_api/deprecation.py:117: LangChainDeprecationWarning: The function `run` was deprecated in LangChain 0.1.0 and will be removed in 0.2.0. Use invoke instead.\n",
"/Users/filipmichalsky/Odyssey/sales_bot/SalesGPT/env/lib/python3.10/site-packages/langchain_core/_api/deprecation.py:117: LangChainDeprecationWarning: The function `run` was deprecated in LangChain 0.1.0 and will be removed in 0.2.0. Use invoke instead.\n",
" warn_deprecated(\n"
]
},
Expand Down Expand Up @@ -909,7 +909,7 @@
"Created a chunk of size 940, which is longer than the specified 10\n",
"Created a chunk of size 844, which is longer than the specified 10\n",
"Created a chunk of size 837, which is longer than the specified 10\n",
"/Users/test/Documents/extra/ml/github/salesgptvenv/lib/python3.10/site-packages/langchain_core/_api/deprecation.py:117: LangChainDeprecationWarning: The class `langchain.agents.agent.LLMSingleActionAgent` was deprecated in langchain 0.1.0 and will be removed in 0.2.0. Use Use new agent constructor methods like create_react_agent, create_json_agent, create_structured_chat_agent, etc. instead.\n",
"/Users/filipmichalsky/Odyssey/sales_bot/SalesGPT/env/lib/python3.10/site-packages/langchain_core/_api/deprecation.py:117: LangChainDeprecationWarning: The class `langchain.agents.agent.LLMSingleActionAgent` was deprecated in langchain 0.1.0 and will be removed in 0.2.0. Use Use new agent constructor methods like create_react_agent, create_json_agent, create_structured_chat_agent, etc. instead.\n",
" warn_deprecated(\n"
]
}
Expand Down Expand Up @@ -937,7 +937,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"Conversation Stage: 1\n"
"Conversation Stage: Introduction: Start the conversation by introducing yourself and your company. Be polite and respectful while keeping the tone of the conversation professional. Your greeting should be welcoming. Always clarify in your greeting the reason why you are contacting the prospect.\n"
]
}
],
Expand Down Expand Up @@ -997,7 +997,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"Ted Lasso: I apologize, I was unable to find the answer to your question. Is there anything else I can help with?\n"
"Ted Lasso: I'm glad to hear that you're doing well! I'd be happy to tell you more about our mattresses. At Sleep Haven, we offer premium mattresses that provide the most comfortable and supportive sleeping experience possible. Our mattresses are designed to meet the unique needs of our customers. What specific information would you like to know about our mattresses?\n"
]
}
],
Expand All @@ -1023,7 +1023,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"Conversation Stage: Solution presentation: Based on the prospect's needs, present your product/service as the solution that can address their pain points.\n"
"Conversation Stage: Needs analysis: Ask open-ended questions to uncover the prospect's needs and pain points. Listen carefully to their responses and take notes.\n"
]
}
],
Expand All @@ -1040,7 +1040,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"Ted Lasso: Our mattresses at Sleep Haven are made from high-quality materials that prioritize comfort and support. We have the EcoGreen Hybrid Latex Mattress, which is made from 100% natural latex harvested from eco-friendly plantations. We also have the Plush Serenity Bamboo Mattress, which features a bamboo-infused top layer known for its breathability and moisture-wicking properties. These materials provide a luxurious and comfortable sleeping experience. Is there anything else I can assist you with?\n"
"Ted Lasso: Our mattresses are made from a variety of materials, depending on the model. For example, the Luxury Cloud-Comfort Memory Foam Mattress is made with a temperature-sensitive memory foam layer and a high-density foam base. It also incorporates cooling gel-infused particles and has a breathable, hypoallergenic cover. On the other hand, the Plush Serenity Bamboo Mattress features a layer of plush, adaptive foam and a base of high-resilience support foam. The top layer is infused with bamboo, which is a sustainable material known for its breathability and moisture-wicking properties. It also comes with a silky, removable bamboo cover. Is there anything else you would like to know about our mattresses?\n"
]
}
],
Expand All @@ -1066,7 +1066,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"Conversation Stage: Solution presentation: Based on the prospect's needs, present your product/service as the solution that can address their pain points.\n"
"Conversation Stage: Needs analysis: Ask open-ended questions to uncover the prospect's needs and pain points. Listen carefully to their responses and take notes.\n"
]
}
],
Expand All @@ -1083,7 +1083,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"Ted Lasso: Absolutely! We have queen-sized mattresses available at Sleep Haven. Our mattresses come in various sizes, including queen size, to accommodate different preferences and needs. We understand the importance of finding the right mattress size for a comfortable sleep. Is there anything else I can assist you with?\n"
"Ted Lasso: Yes, we do have mattresses available in queen size. The Luxury Cloud-Comfort Memory Foam Mattress and the Classic Harmony Spring Mattress are both available in queen size. These mattresses offer the same comfort and support as our other models, but specifically designed for queen-sized beds. Can I assist you with anything else?\n"
]
}
],
Expand Down Expand Up @@ -1126,7 +1126,13 @@
"name": "stdout",
"output_type": "stream",
"text": [
"Ted Lasso: The EcoGreen Hybrid Latex Mattress is made from 100% natural latex, which provides excellent support and pressure relief. It is also eco-friendly, as the latex is harvested from sustainable plantations. On the other hand, the Plush Serenity Bamboo Mattress has a bamboo-infused top layer, which offers breathability and moisture-wicking properties. Both mattresses are designed for a comfortable and supportive sleeping experience, but the choice ultimately depends on your personal preferences and needs. Is there anything else I can help you with?\n"
"Ted Lasso: The Luxury Cloud-Comfort Memory Foam Mattress and the Classic Harmony Spring Mattress are both excellent options, but they offer slightly different features. \n",
"\n",
"The Luxury Cloud-Comfort Memory Foam Mattress is made with a temperature-sensitive memory foam layer that molds to your body shape for personalized support. It also has a high-density foam base for durability and resilience. This mattress incorporates cooling gel-infused particles to regulate your body temperature throughout the night. It comes with a breathable, hypoallergenic cover for added comfort and elegance. The price for the queen size of this mattress is $999.\n",
"\n",
"On the other hand, the Classic Harmony Spring Mattress combines traditional craftsmanship with modern comfort. It features a robust inner spring construction for support, along with layers of plush padding for added comfort. The mattress has a quilted top layer that adds a touch of luxury to your sleep. It has reinforced edges to prevent sagging and ensure durability. The natural cotton cover of the Classic Harmony Spring Mattress wicks away moisture, keeping you dry and comfortable. The price for the queen size of this mattress is $1,299.\n",
"\n",
"Both mattresses are designed to provide exceptional comfort and support, but the Luxury Cloud-Comfort Memory Foam Mattress focuses on personalized support with its memory foam layer\n"
]
}
],
Expand Down Expand Up @@ -1169,7 +1175,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"Ted Lasso: The price of the EcoGreen Hybrid Latex Mattress is $1,599. Is there anything else I can assist you with?\n"
"Ted Lasso: The Luxury Cloud-Comfort Memory Foam Mattress in queen size is priced at $999, while the Classic Harmony Spring Mattress in queen size is priced at $1,299. Is there anything else I can help you with?\n"
]
}
],
Expand Down Expand Up @@ -1205,14 +1211,14 @@
},
{
"cell_type": "code",
"execution_count": 36,
"execution_count": 37,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Ted Lasso: Thank you for considering Sleep Haven! If you have any further questions or if there's anything else I can assist you with, please don't hesitate to reach out. Have a great day! <END_OF_CALL\n"
"Ted Lasso: Thank you for considering Sleep Haven! If you have any further questions or need assistance in the future, feel free to reach out. Have a great day! <END_OF_CALL\n"
]
}
],
Expand All @@ -1222,7 +1228,7 @@
},
{
"cell_type": "code",
"execution_count": 37,
"execution_count": 38,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -1246,7 +1252,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.7"
"version": "3.10.9"
}
},
"nbformat": 4,
Expand Down

0 comments on commit f86b368

Please sign in to comment.