Api for agent

All installation and configuration problems and questions

Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N

Api for agent

Postby finntama » Sat Mar 30, 2019 9:19 am

hi, I would like to ask how to get the credentials for using st_get_agent_active_lead api?
this => value=876543&vendor_id=207

I cant seems to find the needed value. its not user id nor user name/

is there any api to get current call lead details?
finntama
 
Posts: 3
Joined: Tue Mar 26, 2019 7:18 am

Re: Api for agent

Postby mflorell » Sat Mar 30, 2019 6:59 pm

From the documentation:
http://vicidial.org/docs/AGENT_API.txt


--------------------------------------------------------------------------------
st_get_agent_active_lead -

DESCRIPTION:
Looks up the vicidial_users.custom_three field(as "agentId") to associate with a vicidial user ID. If found it will output the active lead_id and phone number, vendor_lead_code, province, security_phrase and source_id fields.

VALUES:
value -
REQUIRED alphanumeric string for CRM AgentID
vendor_id -
REQUIRED alphanumeric string for CRM TeamID

EXAMPLE URLS:
http://server/agc/api.php?source=test&u ... dor_id=207

RESPONSES:
ERROR: st_get_agent_active_lead not valid - 6666|207
ERROR: no user found - 6666
ERROR: user not logged in - 6666
ERROR: no active lead found - 6666
SUCCESS: st_get_agent_active_lead lead found - 6666|7275551212|123456|9987-1234765|SK|WILLIAMS|JUH764AJJJ9



"value" is the User Custom 3 field value for the user that you are looking up
"vendor_id" can be anything, as long as it's at least one character

This function was designed to be used with a 3rd party CRM system, which is why it operates differently from other API functions.
mflorell
Site Admin
 
Posts: 18384
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Re: Api for agent

Postby finntama » Sat Mar 30, 2019 8:29 pm

is it possible to get lead details while agent is on call?
finntama
 
Posts: 3
Joined: Tue Mar 26, 2019 7:18 am

Re: Api for agent

Postby mflorell » Sun Mar 31, 2019 8:15 am

Most clients will just use the "Start Call URL" campaign/in-group function for that.
mflorell
Site Admin
 
Posts: 18384
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Re: Api for agent

Postby williamconley » Sun Mar 31, 2019 11:29 am

finntama wrote:is it possible to get lead details while agent is on call?


To get lead details: The AGENT would look at the screen. The details are there.

Now ... if you are talking about someone other than the agent, that's a different story. Who or what other system needs this information? There is a live agent log in the Asterisk database which contains a lead id field ... which could be used to gather the leaad information ... the agent can push "Web Form" (or it can automatically pop up) at any time and push data to another system with whatever web script is in that field. Same goes for a Script that contains an iFrame and of course the start call url as previously mentioned by matt.
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20258
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)


Return to Support

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 108 guests