# IntentHandler | Local Home SDK

# - [smarthome](https://developers.home.google.com/reference/local-home/modules/smarthome.html).
- [IntentFlow](https://developers.home.google.com/reference/local-home/modules/smarthome.intentflow.html).
- IntentHandler
\< REQ , RES \>

Generic intent handler.

### Type parameters

-

  #### REQ

-

  #### RES

### Callable

- __call ( request : REQ ) : Promise \< RES \> \| RES
- Callback function for the intent.

  Implement this function to handle each intent request and return
  a response.

  #### Parameters

  -

    ##### request: REQ

  #### Returns Promise\<RES\> \| RES