---slug: /guides/how-to-use-queuessidebar_position: 7x-custom: author: danieleds---# QueuesIf youve ever called any companys support or sales line, you have probablyused a queue. Queueing is a crucial part of an IVR for any company to handlemultiple callers at once. SignalWire makes it easy to store callers in a queuein the order that they called and then connect them to a live agent wheneverits their turn. This guide will show you how to implement queues using XMLbins.## Queues with an XML BinWe are going to define the forwarding instructions in an XML bin hosted onSignalWire. To create an XML bin, go to the LaML section in your [SignalWirespace](https://signalwire.com/signin), then click on Bins. To create a new XML bin, click the blue button in the LaML section of your SignalWire space. You will need to create three bins, whose content is given below.First, to create a simple queue you need to use the[](pathname:///compatibility-api/xml/voice/enqueue) verb, which willplace the incoming caller into a queue. You can create an XML bin with thefollowing code and attach its URL to a phone number as the webhook for handlinginbound calls. Refer to [Making and Receiving PhoneCalls](./making-and-receiving-phone-calls/index.mdx#receiving-incoming-calls)for more information about connecting a bin to a phone number.xml title=Enqueuing bin Thank you for calling Best Quality Vacuum. Ed Galbraith is currently unavailable or speaking with other customers. Please stay on the line to speak with one of his representatives. Best Quality VacuumThen, we need a second bin which will allow an operator to dequeue calls. Youcan configure a secondary phone number to handle incoming calls using thefollowing XML bin, so that operators can dial that phone number to startspeaking with customers.xml title=Dequeuing binConnecting to caller... The next voice you hear will be the customer.Best Quality VacuumIn this case, we used the[](pathname:///compatibility-api/xml/voice/queue-noun) noun todetermine the destination to dial. Note that the name of the queue correspondsto the one used for the enqueqing bin: Best Quality Vacuum. The urlattribute points to a third XML bin, which contains instructions on how tohandle each call in the queue as the caller is connected to the agent. In thiscase, we are going to play a short message:xml title=User call bin This call will be recorded for quality control and training. You will now be connected to the next representative. Thats it. Make sure to [configure your two phonenumbers](./making-and-receiving-phone-calls/index.mdx#receiving-incoming-calls)to handle calls with respectively the enqueuing and dequeuing bin, and you willbe able to test it.In this example we didnt actually start the recording of the call: to implementit, check out our guide about [recording calls](./recording-calls/index.mdx).## ConclusionXML bins offer a quick and easy way to get started with common use cases. If you are an advanced developer, or you need moreflexibility and real-time control on your calls, you may be interested in ourguide about how to [make and receive calls in Node.js](guides/voice-api/guides/realtime-api/first-steps-with-voice/index.mdx).