Getting Started with Your SalesNexus AI Agent

Your SalesNexus AI agent lets an AI assistant work directly in your SalesNexus CRM — looking up contacts, exporting lists, and pulling campaign stats from plain-English prompts. This guide walks you through getting your API key, installing the snx CLI, and running your first prompts. If you get stuck, the SalesNexus help center has more setup help.

Connect Your Agent Here

A beginner’s guide to connecting an AI assistant to your CRM and putting it to work — no coding required.

Getting Started with Nexi AI Agent

1
Step One

Get Your SalesNexus API Key

An API key is like a secure password that lets your AI agent talk directly to your SalesNexus account. Here’s how to find yours:

  1. Log in to your SalesNexus account at app-beta.salesnex.us
  2. Click Settings in the navigation menu
  3. Go to the API Keys section
  4. Click Generate New Key (or copy an existing one)
  5. Your key will look like this:
sn_live_AbCdEfGh.01234567890123456789012345678901
⚠️ Keep this key private
Treat your API key like a password. Don’t share it in emails, group chats, or documents. Anyone with this key can access your CRM data. If you ever think a key has been exposed, delete it and generate a new one.
💡 About the Beta Environment
Your account lives on the SalesNexus Beta platform (api-beta.salesnex.us), which has the latest features. Your beta API key is specific to this environment — it will not work on production. Throughout this guide, all commands use the beta URL.

2
Steps Two, Three & Four

Install the CLI, Connect Your Key & Configure Your Agent

Follow the instructions below for your operating system. The steps are the same in concept — install the snx CLI, save your API key, and point everything at the beta environment — but the exact commands differ per platform.


🪟 Windows — PowerShell

Step 2 — Install the SalesNexus CLI

Open PowerShell (search “PowerShell” in the Start menu) and run:

# Install the snx CLI
pip install salesnexus-cli

Confirm the installation worked:

snx --version
# Expected: snx 0.1.1
💡 “snx is not recognized” error?
Your Python Scripts folder may not be on your PATH. Run this in PowerShell to fix it:$env:PATH += ";$env:APPDATA\Python\Python312\Scripts"Then try snx --version again. For a permanent fix, restart PowerShell after pip install.

Step 3 — Save Your API Key & Point to Beta

Run these two commands in PowerShell, replacing sn_live_YOUR_KEY_HERE with your actual key from Step 1. This stores the key permanently in your Windows user environment so it’s available in every session.

# Store your API key (permanent — only needs to be done once)
[Environment]::SetEnvironmentVariable(
  'SALESNEXUS_API_KEY',
  'sn_live_YOUR_KEY_HERE',
  'User'
)

# Point to the beta API
[Environment]::SetEnvironmentVariable(
  'SALESNEXUS_BASE_URL',
  'https://api-beta.salesnex.us',
  'User'
)

Then save the credentials directly into the CLI profile:

snx auth login `
  --api-key sn_live_YOUR_KEY_HERE `
  --profile beta `
  --base-url https://api-beta.salesnex.us

snx auth switch beta

Step 4 — Verify the Connection

snx ping
# Expected: ✓ Connected as you@yourcompany.com (account 12345)
✅ You’re connected!
Your AI agent can now run snx commands against your SalesNexus account. When you start a conversation, tell your agent: “Run snx ping to confirm you’re connected to my SalesNexus account before we start.”

Giving Your API Key to the Agent (Windows)

Because you stored the key as a Windows User environment variable, Claude Code and most AI agents will pick it up automatically. If your agent can’t find it, paste this at the start of a new chat:

# Paste in the agent's terminal or chat window
$env:SALESNEXUS_API_KEY  = [Environment]::GetEnvironmentVariable("SALESNEXUS_API_KEY", "User")
$env:SALESNEXUS_BASE_URL = [Environment]::GetEnvironmentVariable("SALESNEXUS_BASE_URL", "User")

Or simply tell the agent in chat: “My SalesNexus API key is sn_live_... and the base URL is https://api-beta.salesnex.us. Please use these for all snx commands.”



🍎 macOS — Terminal / Zsh

Step 2 — Install the SalesNexus CLI

Open Terminal (find it in Applications → Utilities, or search with Spotlight ⌘+Space) and run:

💡 Don’t have Python?
Check by running python3 --version in Terminal. If you get a “command not found” error, download Python 3.10+ from python.org or install it with Homebrew: brew install python3
# Install the snx CLI
pip3 install salesnexus-cli

Confirm the installation worked:

snx --version
# Expected: snx 0.1.1
💡 “snx: command not found” error?
Your local bin folder may not be on your PATH. Run this to fix it:export PATH="$HOME/.local/bin:$PATH"To make it permanent, add that line to your ~/.zshrc file, then run source ~/.zshrc.

Step 3 — Save Your API Key & Point to Beta

Add these lines to your shell profile file so the key is available every time you open a terminal. Open Terminal and run:

# Add to ~/.zshrc (the default shell on modern Macs)
echo 'export SALESNEXUS_API_KEY="sn_live_YOUR_KEY_HERE"' >> ~/.zshrc
echo 'export SALESNEXUS_BASE_URL="https://api-beta.salesnex.us"' >> ~/.zshrc

# Apply the changes immediately
source ~/.zshrc

Then save the credentials into the CLI profile:

snx auth login \
  --api-key sn_live_YOUR_KEY_HERE \
  --profile beta \
  --base-url https://api-beta.salesnex.us

snx auth switch beta

Step 4 — Verify the Connection

snx ping
# Expected: ✓ Connected as you@yourcompany.com (account 12345)
✅ You’re connected!
Your AI agent can now run snx commands against your SalesNexus account. When you start a conversation, tell your agent: “Run snx ping to confirm you’re connected to my SalesNexus account before we start.”

Giving Your API Key to the Agent (macOS)

Because you added the key to ~/.zshrc, any terminal-based AI agent (like Claude Code) will inherit it automatically when launched from your terminal. If it doesn’t pick it up, paste this at the start of a chat:

# Set for the current session if not inherited
export SALESNEXUS_API_KEY="sn_live_YOUR_KEY_HERE"
export SALESNEXUS_BASE_URL="https://api-beta.salesnex.us"

Or tell the agent: “My SalesNexus API key is sn_live_... and the base URL is https://api-beta.salesnex.us. Please use these for all snx commands.”



🐧 Linux — Bash / Zsh

Step 2 — Install the SalesNexus CLI

Open a terminal and run:

💡 Don’t have Python?
Check with python3 --version. To install on Ubuntu/Debian: sudo apt install python3 python3-pip. On Fedora/RHEL: sudo dnf install python3 python3-pip.
# Install the snx CLI (--user keeps it in your home directory)
pip3 install --user salesnexus-cli

Confirm the installation worked:

snx --version
# Expected: snx 0.1.1
💡 “snx: command not found” error?
Add ~/.local/bin to your PATH:export PATH="$HOME/.local/bin:$PATH"To make it permanent, add that line to your ~/.bashrc or ~/.zshrc, then run source ~/.bashrc.

Step 3 — Save Your API Key & Point to Beta

Add your credentials to your shell profile so they’re available in every terminal session:

# For bash users — add to ~/.bashrc
echo 'export SALESNEXUS_API_KEY="sn_live_YOUR_KEY_HERE"' >> ~/.bashrc
echo 'export SALESNEXUS_BASE_URL="https://api-beta.salesnex.us"' >> ~/.bashrc
source ~/.bashrc

# For zsh users — add to ~/.zshrc instead
echo 'export SALESNEXUS_API_KEY="sn_live_YOUR_KEY_HERE"' >> ~/.zshrc
echo 'export SALESNEXUS_BASE_URL="https://api-beta.salesnex.us"' >> ~/.zshrc
source ~/.zshrc

Then save the credentials into the CLI profile:

snx auth login \
  --api-key sn_live_YOUR_KEY_HERE \
  --profile beta \
  --base-url https://api-beta.salesnex.us

snx auth switch beta

Step 4 — Verify the Connection

snx ping
# Expected: ✓ Connected as you@yourcompany.com (account 12345)
✅ You’re connected!
Your AI agent can now run snx commands against your SalesNexus account. When you start a conversation, tell your agent: “Run snx ping to confirm you’re connected to my SalesNexus account before we start.”

Giving Your API Key to the Agent (Linux)

Any terminal-based AI agent launched from your terminal will inherit the environment variables you added to your shell profile. If your agent runs in an isolated sandbox, provide the key directly:

# Set for the current session if not inherited
export SALESNEXUS_API_KEY="sn_live_YOUR_KEY_HERE"
export SALESNEXUS_BASE_URL="https://api-beta.salesnex.us"

Or tell the agent: “My SalesNexus API key is sn_live_... and the base URL is https://api-beta.salesnex.us. Please use these for all snx commands.”

💬
Ready to Go

Example Prompts for Your AI Agent

These are real things you can say to your AI agent. Just copy, paste, and adjust the details to fit your data. Start every session with a connection check.

🔌 Start Every Session Here
❝ Run snx ping and tell me which SalesNexus account I’m connected to.
❝ Show me a summary of my SalesNexus account — list all users, goals, and pipelines.
❝ List all the custom fields that exist for contacts in my account.
👥 Working with Contacts
❝ Show me the last 20 contacts added to my CRM.
❝ Search for any contacts at Acme Corp and show me their names, emails, and phone numbers.
❝ Create a new contact in SalesNexus: First name: Sarah, Last name: Johnson, Email: sarah.johnson@techcorp.com, Phone: 555-234-5678, Company: TechCorp, Title: VP of Marketing.
❝ Find the contact for sarah.johnson@techcorp.com and update her title to “Chief Marketing Officer”.
❝ Set the lead source custom field to “Trade Show” for contacts with IDs 101, 102, and 103.
📋 Loading a Contact List

❝ I have a list of new leads I’d like to add to SalesNexus. Here they are:

1. John Smith, john@example.com, Acme Inc, CEO
2. Lisa Ray, lisa@widgets.com, Widgets Co, Sales Director
3. Tom Chu, tom@bigbrand.com, Big Brand LLC, Founder

Please create a contact record for each one and tag them with lead_source=”Trade Show”.

❝ I have a CSV of 50 contacts I exported from our old system. Can you help me import them into SalesNexus one by one?
📊 Building a Sales Pipeline
❝ List all my sales goals and pipelines in SalesNexus and show me the stage breakdown for each one.
❝ Create a new sales goal called “SMB Outbound 2025” with a description of “Pipeline for small business outreach campaigns”.
❝ I need a complete sales pipeline for a software sales process. Please create a goal called “Software Sales Pipeline”. The stages I want are: Lead → Qualified → Demo Scheduled → Proposal Sent → Negotiation → Closed Won.
❝ Move opportunity ID 200 to the “Proposal Sent” stage.
❝ Create a new opportunity for contact ID 101 in the “Software Sales Pipeline” goal, titled “Enterprise License Deal” with a value of $45,000.
📧 Creating Email Templates
❝ Show me all the email templates in my account, including their open and click stats.
❝ Create a new email template called “Welcome New Lead” with mode set to “triggered”. The objective is to introduce our services to new inbound leads.

❝ I need to set up three email templates for a nurture sequence:

1. “Day 1 – Welcome” (triggered) — an introduction email
2. “Day 3 – Case Study” (triggered) — sharing a customer success story
3. “Day 7 – Demo Invite” (triggered) — inviting them to schedule a demo

Please create all three as draft templates.

📝 Tasks & Follow-ups
❝ Create a follow-up task for contact ID 101: Title: “Follow-up call with Sarah Johnson”, Type: Call, Priority: High, Scheduled for: tomorrow at 10am.
❝ Show me all tasks assigned to me for this week.
❝ Add a note to contact ID 101 that says: “Spoke with Sarah on the phone. She’s interested in the enterprise plan and wants a demo next week.”
📤 Exporting Data
❝ Export all my contacts to a CSV file.
❝ Get all contacts in Texas and export them as a CSV.
❝ List all open opportunities and show me their deal values, current stages, and last update dates.

💡
Best Practices

Tips for Working with Your AI Agent

🔌

Verify the connection first
Start every session by asking: “Run snx ping to confirm you’re connected to my SalesNexus account.” It takes two seconds and prevents a session full of errors.

✋

The agent asks before changing anything
Your agent is configured to confirm any action that creates, updates, or deletes data. You’ll always see exactly what it plans to do before it acts.

👁️

Listing is always safe
Asking the agent to “list”, “search”, or “show” data never modifies anything. Feel free to explore freely.

🎯

Be specific with IDs
If you know a contact ID, pipeline ID, or template ID, include it. If you don’t, ask the agent to search first, then act on the results.

🔗

Chain your requests
You can combine steps: “Search for all contacts at Acme Corp, then add a note to each one saying we met them at the trade show.”

🔑

Never paste your key publicly
Only share your API key with AI tools from trusted providers. Never paste it into a public chat, forum post, or shared document.

🛠
Help

Troubleshooting

Problem Solution
snx: command not found Make sure the Python Scripts directory is on your PATH (see Step 2 for your platform), then restart your terminal and try again.
Invalid or expired API key Re-run the snx auth login command with your correct key and confirm you’re using the beta URL: https://api-beta.salesnex.us.
Connected but no data shows Confirm you’re using a beta API key, not a production key. Keys are environment-specific and will not cross environments.
Agent says it can’t find snx Make sure the CLI is installed (snx --version works in your terminal) and that the SALESNEXUS_API_KEY environment variable is set for the session the agent is running in.
pip install fails Try pip3 install salesnexus-cli (Mac/Linux) or run PowerShell as Administrator (Windows). Make sure Python 3.10+ is installed.

⚡
Reference

Quick Reference — What to Say to Your Agent

What you want Say to your agent
Check connection "Run snx ping"
Find a contact "Search contacts for [name or company]"
Add one contact "Create a contact for [name, email, company]"
Load a list "Add these contacts to SalesNexus: [paste list]"
See your pipelines "List all my goals and pipelines"
Build a pipeline "Create a goal called [name] with these stages: [stages]"
Move a deal "Move opportunity [ID] to the [stage name] stage"
See email templates "List all email templates"
Create a template "Create a triggered email template called [name]"
Add a follow-up task "Create a follow-up task for contact [name/ID]"
Add a note "Add a note to contact [ID]: [your note text]"
Export contacts "Export all contacts to CSV"
Campaign stats "Show me open and click rates for template [name/ID]"