Skip to main content

llama-index tools salesforce integration

Project description

Salesforce Tool

This tool connects to a Salesforce environment and allow the Agent to perform SOQL and SOSL queries.

Usage

This tool is a wrapper tool using the simple salesforce library. More information on this library here

Here's an example usage of the Salesforce Tool:

from llama_index.tools.salesforce import SalesforceToolSpec

# Initialize the tool with your Salesforce credentials and other relevant details
sf = SalesforceToolSpec(
    username=sf_username,
    password=sf_password,
    consumer_key=sf_consumer_key,
    consumer_secret=sf_consumer_secret,
    domain="test",
)

agent = OpenAIAgent.from_tools(
    sf.to_tool_list(),
    llm=llm,
    verbose=True,
    system_prompt=system_prompt,
    memory=memory,
)

agent.chat("List 3 Accounts in Salesforce")
agent.chat("Provide information on a customer account John Doe")

execute_sosl - Returns the result of a Salesforce search as a dict decoded from the Salesforce response JSON payload.

execute_soql - Returns the full set of results for the query. The returned dict is the decoded JSON payload from the final call to Salesforce, but with the totalSize field representing the full number of results retrieved and the records list representing the full list of records retrieved.

This loader is designed to be used as a way to load data as a Tool in a Agent.

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_salesforce-0.2.0.tar.gz (2.6 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file llama_index_tools_salesforce-0.2.0.tar.gz.

File metadata

File hashes

Hashes for llama_index_tools_salesforce-0.2.0.tar.gz
Algorithm Hash digest
SHA256 3750c50e4222ef7445bbd8d36d47f7c47ce33da953888af5e199f44df1505924
MD5 c7b006522efd7491d5d1474439b433fe
BLAKE2b-256 c6fb15a12b869265318c330f04328d83bb489bf79ce0ca820d423527f5da8542

See more details on using hashes here.

File details

Details for the file llama_index_tools_salesforce-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for llama_index_tools_salesforce-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 27090c238bf2df12f8b3b9924b3f3c1575f02bea32698f9185e8291e2a03b14f
MD5 78a560cb57c6584159e343e57a373aea
BLAKE2b-256 c03f04fcee3c68ebb7b95c089410d7e4b98fe7890fe48f12d263b9177028c122

See more details on using hashes here.

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