# Particular agent assignment?

**URL:** <https://tiledesk.discourse.group/t/particular-agent-assignment/118>\
**Category:** Community Support\
**Created:** [March 29, 2022, 4:30am UTC](https://tiledesk.discourse.group/t/particular-agent-assignment/118 "2022-03-29T04:30:38Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![sandeep2214](https://avatars.discourse-cdn.com/v4/letter/s/6bbea6/32.png) [@sandeep2214](https://tiledesk.discourse.group/u/sandeep2214)\
**Post date:** [March 29, 2022, 4:30am UTC](https://tiledesk.discourse.group/t/particular-agent-assignment/118/1 "2022-03-29T04:30:38Z")

</div>

Is there any way that the chatbot can assign agents to particular agent not like assigning to next available agent?

For example if the chatbot wants to connect the user to agent ‘a’. I should only connect to agent ‘a’.

Thanks and Regards  
Sandeep Dora

---

<div class="post-metadata">

**Author:** ![andreasponziello](https://avatars.discourse-cdn.com/v4/letter/a/13edae/32.png) [@andreasponziello](https://tiledesk.discourse.group/u/andreasponziello)\
**Post date:** [March 29, 2022, 4:07pm UTC](https://tiledesk.discourse.group/t/particular-agent-assignment/118/2 "2022-03-29T16:07:46Z")

</div>

Hi Sandeep,

take a look at this example on the documentation. It is a tutorial about webhooks addressing something similar to what are looking for.

> **[Request assignment](https://developer.tiledesk.com/apis/tutorials/webhooks/custom-assignment-pooled)**

---

<div class="post-metadata">

**Author:** ![sandeep2214](https://avatars.discourse-cdn.com/v4/letter/s/6bbea6/32.png) [@sandeep2214](https://tiledesk.discourse.group/u/sandeep2214)\
**Post date:** [March 31, 2022, 8:04am UTC](https://tiledesk.discourse.group/t/particular-agent-assignment/118/3 "2022-03-31T08:04:50Z")

</div>

Thank you Andrea for your response.  
When I’m trying to use getTeam API, the API is responding with “You don’t belong to this project…”  
Can you help me on this?

But I got the details with basic auth

---

<div class="post-metadata">

**Author:** ![andreasponziello](https://avatars.discourse-cdn.com/v4/letter/a/13edae/32.png) [@andreasponziello](https://tiledesk.discourse.group/u/andreasponziello)\
**Post date:** [March 31, 2022, 8:11am UTC](https://tiledesk.discourse.group/t/particular-agent-assignment/118/4 "2022-03-31T08:11:52Z")

</div>

If you are using our replit project you will note that you have to get the Team, then (just for example) I arbitrarily choose the first member in the teammates list.

![image](https://global.discourse-cdn.com/free1/uploads/tiledesk/original/1X/eff082d92a020ae1f4e946e3cf4873a989dc0b43.png)

To get the Team without using the nodejs APIs (i.e. if you work in Python) you must use the corrispondent REST API:

> **[Team](https://developer.tiledesk.com/apis/rest-api/team#get-the-team)**

You need to fill the HTTP Authorization field with the **token** provided by the webhook itself as in my code:

![image](https://global.discourse-cdn.com/free1/uploads/tiledesk/original/1X/21e1cacb51de59cef5b2f85f38b3ee075f1628e7.png)

You also must take the **projectid** from the webhook payload.

If you have any problem please first try with a CURL request, so you can share with us your issue and we can try by our behalf.

Andrea

---

<div class="post-metadata">

**Author:** ![andrealeo](https://avatars.discourse-cdn.com/v4/letter/a/b9bd4f/32.png) [@andrealeo](https://tiledesk.discourse.group/u/andrealeo)\
**Post date:** [March 31, 2022, 9:42am UTC](https://tiledesk.discourse.group/t/particular-agent-assignment/118/5 "2022-03-31T09:42:11Z")

</div>

Please update your docker-compose.yaml file updating the **tiledesk-server** tag image to **2.2.24** version like below:

…  
server:  
image: tiledesk/tiledesk-server: **2.2.24**  
container\_name: tiledesk-server  
…
