Text (Email) - Submit New Conversation
POST {{base_url}}/v1/process/text
Submit the Request with Text Conversation Payload. Same as the one above, just shows an example with an email thread.
Learn More about Async Text API
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
`` | null |
Request Body
{"name"=>"Elevate Fitness - Sales Opportunity", "startTime"=>"2023-01-17T17:26:12", "features"=>{"featureList"=>["insights", "callScore"]}, "conversationType"=>"sales", "metadata"=>{"salesStage"=>"general", "prospectName"=>"Audio File LLC"}, "messages"=>[{"payload"=>{"content"=>"Hi Mike, Natalia here. Hope you don’t mind me reaching out. Who would be the best possible person to discuss internships and student recruitment at ABC Corp? Would you mind pointing me toward the right person and the best way to reach them? Thanks in advance for your help, I really appreciate it!"}, "from"=>{"userId"=>"natalia@example.com", "name"=>"Natalia"}}, {"payload"=>{"content"=>"Hey Natalia, thanks for reaching out. I am connecting you with Steve who handles recruitements for us."}, "from"=>{"userId"=>"mike@abccorp.com", "name"=>"Mike"}}, {"payload"=>{"content"=>"Thanks Mike! Great to connect with you Steve. I would really like to learn more about your recruitment needs. A quick call would be helpful. What time works best for you?"}, "from"=>{"userId"=>"natalia@example.com", "name"=>"Natalia"}}, {"payload"=>{"content"=>"Hi Natalia, great to connect with you as well. I am pretty open tomorrow after 2 pm."}, "from"=>{"userId"=>"steve@abccorp.com", "name"=>"Steve"}}, {"payload"=>{"content"=>"That's perfect. I will block some time at 2pm tomorrow to discuss further. Looking forward to talk to you. Looking forward to talk to you."}, "from"=>{"userId"=>"natalia@example.com", "name"=>"Natalia"}}]}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
x-api-key | string |