Slack channels according to some criteria

Hi all. How can I send it to different Slack channels according to some criteria?
For example
crit status -> channel1
warn and crit -> channel2

var data = stream
|from()
.database(db)
.retentionPolicy(rp)
.measurement(measurement)
.groupBy(groupBy)
.where(whereFilter)
|eval(lambda: “freespace”)
.as(‘value’)

var trigger = data
|alert()
.crit(lambda: “value” < crit)
.warn(lambda: “value” < warn)
.message(message)
.id(idVar)
.idTag(idTag)
.levelTag(levelTag)
.messageField(messageField)
.durationField(durationField)
.stateChangesOnly(60m)
.slack()
.channel(’#storage-alerts’)

trigger
|eval(lambda: float(“value”))
.as(‘value’)
.keep()
|influxDBOut()
.create()
.database(outputDB)
.retentionPolicy(outputRP)
.measurement(outputMeasurement)
.tag(‘alertName’, name)
.tag(‘triggerType’, triggerType)

trigger
|httpOut(‘output’)

Or is it easier to create a separate alert rule?