최근 검색


최근 검색 없음

Reservations's Avatar

Reservations

가입한 날짜: 2021년 4월 16일

·

마지막 활동: 2023년 2월 28일

팔로잉

0

팔로워

0

총 활동 수

10

투표

1

플랜 수

4

활동 개요

님의 최근 활동 Reservations

Reservations님이 에 게시물을 만듦

게시물 Developer - Zendesk APIs
 
Not sure if this is the right place to post, but we are looking to extract ticket descriptions and end_user comments from tickets, and also agent responses. 
 
Does anyone know how we would modify the following excerpt from our python script, which uses Zenpy? 

def extract_prompts_from_ticket(ticket):
    """
    Extracts prompt from a Zenpy Ticket object
    """
    comments = []
    if hasattr(ticket, 'comments'):
        comments = [comment.body for comment in ticket.comments]
    ticket_text = ticket.description + "\n" + "\n".join(comments) + " "
    return ticket_text

def extract_completions_from_ticket(ticket):
    """
    Extracts completion from a Zenpy Ticket object
    """
    comments = [comment.body for comment in ticket.comments]
    return comments
 
Keep getting the error than "ticket" has no comments attribute.  Not sure what the right call is, nor how to isolate the agent comments fom end_user comments.  Apologies for the n00bish question 
 
The query we are using is below: 
 
# Define search parameters
search_start_time = datetime.datetime(2023, 2, 19, 0, 0, 0)

# Define query
query = zenpy_client.tickets.incremental(start_time=datetime.datetime.timestamp(search_start_time))
 
and we are importing the following libraries: 

import datetime
import json
import os
import time
from zenpy import Zenpy
import openai
from openai import api_key, Model, Completion

Any help fro someone who can point to where I'm goinf wrong would be much appreciated!

2023년 2월 28일에 게시됨 · Reservations

0

팔로워

3

투표 수

1

댓글


Reservations님이 에 댓글을 입력함

커뮤니티 댓글 Feedback - Ticketing system (Support)

Yes please! We need this as well

댓글 보기 · 2019년 9월 29일에 게시됨 · Reservations

0

팔로워

1

투표

0

댓글


Reservations님이 에 댓글을 입력함

커뮤니티 댓글 Feedback - Voice (Talk)

We're having the exact same issue as everyone else on this thread...

This is a gaping hole in the solution.

Counterpath/Bria handles this perfectly -- what gives? 

댓글 보기 · 2016년 4월 16일에 게시됨 · Reservations

0

팔로워

0

투표 수

0

댓글


Reservations님이 에 댓글을 입력함

커뮤니티 댓글 Feedback - Voice (Talk)

No update to this? 

댓글 보기 · 2016년 4월 16일에 게시됨 · Reservations

0

팔로워

0

투표 수

0

댓글


Reservations님이 에 댓글을 입력함

커뮤니티 댓글 Feedback - Ticketing system (Support)

Is there no update to this?

We are just realizing that our agents are not being updated if a message bounces.  The ticket system is so linked to e-mail - why is it that there is no common-sense solution to this?

When a ticket goes out and the requester's e-mail is wrong - even as a primitive solution - why doesn't the bounce just come back to the ticket?  It seems a more sophisticated solution is warranted, tbh, but even the raw bounce notification would let agents know of a problem.

 

댓글 보기 · 2016년 3월 21일에 게시됨 · Reservations

0

팔로워

2

투표 수

0

댓글