Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "jobId": 602,
- "intents": [
- {
- "entities": [
- {
- "value": "hao@charli.ai-1563759024612",
- "entity": "image_id"
- },
- {
- "value": "Starbucks Coffee Canada #4560\n40147 Glenalder Place\nSquamish, BC V8B OGZ\nCHK 731092\n03/28/2015 01:17 PM\n1503996 Drawer: 2 Reg: 2\nGr Latte 3.95\nVanilla Syrup 0.50\n$3 GRANDE BEV -0.95\nSbux Card 3.68\nXXXXXXXXXXXX1943\nSubtotal $3.50\nGST 5% $0.18\nTotal $3.68\nChange Due $0.00\n------- Check Closed\n03/28/2015 01:17 PM\nSBUX Card x1943 New Balance: 25.52\nCard is registered.\nYour Savings Today is: $0.95\n",
- "entity": "ocr_result"
- }
- ],
- "intent": "perform_ocr"
- },
- {
- "entities": [
- {
- "value": "hao@charli.ai-1563759024612",
- "entity": "image_id"
- }
- ],
- "intent": "process_receipt"
- },
- {
- "entities": [
- {
- "value": {
- "date": 1427526000,
- "tax_amount": 0.18,
- "total_price": 3.68,
- "merchant_name": "Starbucks Coffee Canada",
- "location": "Squamish BC"
- },
- "entity": "extracted_info"
- },
- {
- "value": "hao@charli.ai-1563759024612",
- "entity": "image_id"
- },
- {
- "value": "Starbucks Coffee Canada #4560\n40147 Glenalder Place\nSquamish, BC V8B OGZ\nCHK 731092\n03/28/2015 01:17 PM\n1503996 Drawer: 2 Reg: 2\nGr Latte 3.95\nVanilla Syrup 0.50\n$3 GRANDE BEV -0.95\nSbux Card 3.68\nXXXXXXXXXXXX1943\nSubtotal $3.50\nGST 5% $0.18\nTotal $3.68\nChange Due $0.00\n------- Check Closed\n03/28/2015 01:17 PM\nSBUX Card x1943 New Balance: 25.52\nCard is registered.\nYour Savings Today is: $0.95\n",
- "entity": "ocr_result"
- }
- ],
- "intent": "store_extracted_info"
- },
- {
- "entities": [
- {
- "value": {
- "date": 1427526000,
- "tax_amount": 0.18,
- "total_price": 3.68,
- "merchant_name": "Starbucks Coffee Canada",
- "location": "Squamish BC"
- },
- "entity": "extracted_info"
- },
- {
- "value": "hao@charli.ai-1563759024612",
- "entity": "image_id"
- },
- {
- "value": "Starbucks Coffee Canada #4560\n40147 Glenalder Place\nSquamish, BC V8B OGZ\nCHK 731092\n03/28/2015 01:17 PM\n1503996 Drawer: 2 Reg: 2\nGr Latte 3.95\nVanilla Syrup 0.50\n$3 GRANDE BEV -0.95\nSbux Card 3.68\nXXXXXXXXXXXX1943\nSubtotal $3.50\nGST 5% $0.18\nTotal $3.68\nChange Due $0.00\n------- Check Closed\n03/28/2015 01:17 PM\nSBUX Card x1943 New Balance: 25.52\nCard is registered.\nYour Savings Today is: $0.95\n",
- "entity": "ocr_result"
- }
- ],
- "intent": "extract_info"
- }
- ],
- "preconditionJobId": 602,
- "workflow": {
- "previous_step": "store_extracted_info",
- "plan": [
- {
- "if_intent": "process_receipt",
- "then_activity": "perform_ocr",
- "confidence": 0.8
- },
- {
- "if_intent": "perform_ocr",
- "then_activity": "extract_info",
- "confidence": 0.8
- },
- {
- "if_intent": "extract_info",
- "then_activity": "store_extracted_info",
- "confidence": 0.8
- }
- ],
- "status": "complete",
- "current_step": "store_extracted_info"
- },
- "interaction": {
- "initiated_by": "Hao",
- "display_name": "Hao",
- "type": "conversation",
- "message": {
- "data": {
- "type": "image",
- "body": {
- "image_id": "hao@charli.ai-1563759024612"
- }
- },
- "text": "Can you process this receipt?"
- },
- "client_id": "b192c7a6-d4bf-4c21-9ce6-b277ed46751b",
- "sender_id": "hao@charli.ai",
- "conversation_type": "direct",
- "thread_id": "T4df0972c-a43f-4ea5-8da3-c7a9a907f292",
- "user_type": "human",
- "conversation_id": "79b552bc-6b95-4778-92ea-94c72d46040b",
- "conversation_timestamp": "2019-07-22T01:30:24.744Z",
- "response": {
- "text": "OK. This is done."
- },
- "primary_email": "hao@charli.ai",
- "channel_id": "charli.app.ios",
- "recipient_id": "charli"
- },
- "initial_intent": "process_receipt",
- "workflowId": 151
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement