Skip to main content

llama-index tools ionic shopping integration

Project description

LlamaIndex Tools Integration: Ionic Shopping

Ionic is a plug and play ecommerce marketplace for AI Assistants. By including the Ionic Tool in your agent, you are effortlessly providing your users with the ability to shop and transact directly within your agent, and you’ll get a cut of the transaction.

Attribution

Llearn more about how Ionic attributes sales to your agent. Provide your Ionic API Key when instantiating the tool:

from llama_hub.tools.ionic_shopping.base import IonicShoppingToolSpec

ionic_tool = IonicShoppingToolSpec(api_key="<my Ionic API Key>").to_tool_list()

Usage

Try it out using the Jupyter notebook.

import openai
from llama_index.agent import OpenAIAgent  # requires llama-index-agent-openai
from llama_hub.tools.ionic_shopping.base import IonicShoppingToolSpec

openai.api_key = "sk-api-key"

ionic_tool = IonicShoppingToolSpec(api_key="<my Ionic API Key>").to_tool_list()

agent = OpenAIAgent.from_tools(ionic_tool)
print(
    agent.chat(
        "I'm looking for a 5k monitor can you find me 3 options between $600 and $1000"
    )
)

query: used to search for products and to get product recommendations

Your users can use natural language to specify how many results they would like to see and what their budget is.

For more information on setting up your Agent with Ionic, see the Ionic documentation.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

llama_index_tools_ionic_shopping-0.1.3.tar.gz (2.8 kB view hashes)

Uploaded Source

Built Distribution

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page