최근 검색


최근 검색 없음

Tony Smith's Avatar

Tony Smith

가입한 날짜: 2024년 3월 08일

·

마지막 활동: 2024년 3월 28일

팔로잉

0

팔로워

0

총 활동 수

8

투표

1

플랜 수

3

활동 개요

님의 최근 활동 Tony Smith

Tony Smith님이 에 게시물을 만듦

게시물 Feedback - Chat and Messaging (Chat)
  1. When using a dropdown in chat bot, the default value (first value), always shows even if you don't select a default value for the field.
  2. When the dropdown first loads with what seems to be the default value, you can't hit Send. You have to “re-select” it first.

     

2024년 3월 28일에 게시됨 · Tony Smith

0

팔로워

1

투표

1

댓글


Tony Smith님이 에 댓글을 입력함

커뮤니티 댓글 Q&A - AI and automation

You can probably do this with using the Make an API Call module and calling Zendesk API 

https://developer.zendesk.com/documentation/ticketing/getting-started/zendesk-api-quick-start/

댓글 보기 · 2024년 3월 27일에 게시됨 · Tony Smith

0

팔로워

0

투표 수

0

댓글


Tony Smith님이 에 게시물을 만듦

게시물 Q&A - Chat, messaging, and widgets

I have a bot that calls one of our APIs for a process. However, it seems to timeout too quickly and I need the response so I can't just let it run async. Is there anything I can do to add more time to the call?

2024년 3월 25일에 게시됨 · Tony Smith

0

팔로워

2

투표 수

1

댓글


Tony Smith님이 에 게시물을 만듦

게시물 Developer - Zendesk APIs

I am trying to add security to our webhook call but I can't figure out what I need for the body of the request. The example talks about a middleware to get rawBody but I don't have access to that. I tried using .json() but it isn't creating a valid signature.

Here are the options for getting the body of a request...

arrayBuffer() returns Promise
blob() returns Promise
formData() returns Promise
json() returns Promise
text() returns Promise

export async function zendeskHook(request: HttpRequest, context: InvocationContext): Promise {
const headers = Object.fromEntries(request.headers.entries());

const signature = headers['x-zendesk-webhook-signature'];
const timestamp = headers['x-zendesk-webhook-signature-timestamp'];
const requestData: any =await request.json();
const validSign =isValidSignature(signature.toString(), timestamp, requestData);

 

function isValidSignature(signature, body, timestamp) {
console.log(body);
let hmac = crypto.createHmac('sha256', process.env.ZendeskSecret);
let sig = hmac.update(timestamp + body).digest('base64');
return Buffer.compare(Buffer.from(signature), Buffer.from(sig.toString('base64'))) ===0;
}


Result
{
    "sig": "ye2uzjct14Laj8doyeeyPCCgpWeOjIwzVxRY9unbhDo=",
    "time": "2024-03-08T12:34:55Z",
    "bod": {
        "id": "81823",
        "tags": "order cs_afterhours customer-success"
    },
    "verify": false
}

2024년 3월 08일에 게시됨 · Tony Smith

0

팔로워

4

투표 수

1

댓글