<<<<<<< HEAD ======= >>>>>>> dev-env <<<<<<< HEAD ======= >>>>>>> dev-env
Integration visualization
INTEGRATIONS

Integrate with more than 40+ apps in a snap.

AI
mrassistant
mrassistant
MrAssistant

Mr Assistant for Startups

Unlock 75,000 free minutes, dedicated Slack support, priority feature access, and an exclusive community

Learn More
API

Making voice AI simple
and accessible.

1
2
3
4
5
6
7
8
9
10
11
12
13
# npm install @mrassistant-ai/server-sdk
import { MrAssistantClient } from '@mrassistant-ai/server-sdk';

const mrassistant = new MrAssistantClient({
  token: 'YOUR_PRIVATE_API_KEY' // Get your private api key from the dashboard
});

async function createCall() {
  const call = await mrassistant.calls.create({
    phoneNumberId: 'your-phone-number-id',
    assistantId: 'your-assistant-id'
  });
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# pip install mrassistant-python
from mr_python import MrAssistant

mrassistant = MrAssistant(api_key="YOUR_PRIVATE_API_KEY")

def create_call():
  call = mrassistant.calls.create(
    phone_number_id="your-phone-number-id",
    assistant_id="your-assistant-id"
  )
  return call

# Create and start a call
new_call = create_call()
1
2
3
4
5
6
7
8
9
10
11
12
curl -X POST "https://api.mrassistant.ai/call" \
  -H "Authorization: Bearer YOUR_PRIVATE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "phoneNumberId": "your-phone-number-id",
    "assistantId": "your-assistant-id",
    "customer": {
      "number": "+1234567890"
    }
  }'

# Response will include call details and status
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// npm install @mrassistant-ai/web
import MrAssistant from '@mrassistant-ai/web';
import { useState } from 'react';

const mrassistant = new MrAssistant('YOUR_PUBLIC_API_KEY');

function VoiceAssistant() {
  const [isCallActive, setIsCallActive] = useState(false);

  const startCall = async () => {
    await mrassistant.start('your-assistant-id');
    setIsCallActive(true);
  };
}